Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After upgrade to OSX 10.8.2 "latex: command not found"

I've been using the vim-latex suite on my mac (10.7.?) for months with no problem. Over the weekend, I upgraded the OS to 10.8.2, and now my tex files fail to compile. The compile command

\ll

produces no errors within vim, but no pdf-file gets produced. If I drop to the command line in a terminal, the following command

latex document.tex

produces

-bash: latex: command not found

Similarly, for pdflatex. I'm not sure if this is a path error, or if latex for 10.8.2 needs to be reinstalled. I'm not sure how to proceed in either case.

like image 494
joelwatsonfish Avatar asked Dec 17 '12 14:12

joelwatsonfish


2 Answers

I had the same problem and typing:

export PATH=/usr/texbin:$PATH

seems to work fine in a shell. Although it no longer works if I open a new shell, this is a faster solution to re-downloading and re-installing the huge MacTeX program.

like image 165
Yoga Avatar answered Oct 03 '22 05:10

Yoga


This happened to me after upgrading to OS X El Capitan. I found the latex executables in /usr/local/texlive/2014/bin/x86_64-darwin. So, I just added this to my .bashrc

export PATH="$PATH:/usr/local/texlive/2014/bin/x86_64-darwin"

No need to reinstall.

like image 45
petew Avatar answered Oct 03 '22 05:10

petew