[Tex/LaTex] Using TexShop, upgraded to OS X El Capitan, and the fix isn’t working

errorsmacmactextexshop

I am having issues compiling in TeXShop since upgrading to El Capitan. I have searched extensively for a fix, but none of the recommended settings are fixing my problem. Here is a screenshot of my settings in TeXShop:

enter image description here

These settings produce the error: "/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://www.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."

Additionally, I already tried reinstalling MacTex to no effect. TeXShop is fully updated.


I tried compiled from the command line the simple document (named practice.tex):

\documentclass[12pt]{article}
\begin{document}
Hi
\end{document}

I tried
/usr/local/texlive/2015/bin/*/pdflatex practice.tex and got:

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded >format=pdflatex)
restricted \write18 enabled.
entering extended mode
(/usr/local/texlive/2015/bin/x86_64-darwin/pdflatex
LaTeX2e <2015/01/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.

l.1 ?

I then tried pdflatex practice.tex and got "command not found."

echo $PATH returns:

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/texlive/2012/bin/x86_64-darwin

kpsewhich -var TEXMFMAIN returns "command not found."

which pdflatex returns nothing.


ls -l /Library/TeX/texbin gives

total 8
lrwxr-xr-x 1 root wheel 29 Nov 29 21:48 texbin -> Distributions/Programs/texbin

ls /usr/local/texlive/2015/bin/ gives:

universal-darwin x86_64-darwin

Best Answer

In the end, a complete uninstall of MacTex worked. I followed the instructions here: https://tug.org/mactex/uninstalling.html, then reinstalled MacTex-2015. Everything compiles like it should.

Related Question