[Tex/LaTex] MacTeX problem: /Library/TeX/texbin/pdflatex does not exist error


Like others have noted, after upgrading to El Capitan, there was a required reconfiguration for MacTeX. I completed the fix specified here: https://tug.org/mactex/UpdatingForElCapitan.pdf. So, I changed the Path settings for (pdf)TeX from /usr/texbin to /Library/TeX/texbin in TeXShop preferences, and I changed /usr/texbin/pdflatex to /Library/TeX/texbin/pdflatex and /usr/texbin/xelatex to /Library/TeX/ texbin/xelatex, in BibDesk preferences.

However, if I try to compile a document, I still get the following error report:

/Library/TeX/texbin/pdflatex does not exist. TeXShop is a front end for TeX, but you also need a TeX distribution. Perhaps such a distribution was not installed or was removed during a system upgrade. If so, go to http://tug.org/MacTeX and follow the instructions to (re)install MacTeX. A less likely possibility is that a tool path is incorrectly configured in TeXShop preferences. This can happen if you are using the macports or fink distributions

I’m now not sure if I should really re-install, or am I missing some bit of the fix.

I also tried going to terminal and doing which pdftex, but it returned nothing. Reinstall?

Best Answer

I had the same problem after installing El Capitan.

Did you test if you are able to use pdflatex running from the terminal? In my case it worked.

After knowing that I used which pdflatex to see where the pdflatex is, andthe result was /Library/TeX/texbin/pdflatex. Then I went to this directory, and I noticed that most of its content (including the pdflatex) are actually links to other things, and in the case of pdflatex it is on the path: /usr/local/texlive/2015/bin/x86_64-darwin/.

I changed the path settings in TeXShop to this directory and it solved the problem for me.

Related Question