[Tex/LaTex] After El Capitan update, TeX doesn’t compile


I get this error when clicking "typeset" on TeXShop:

"/usr/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."

How do I fix this issue? (I apologize if the tag below is incorrect.)

Best Answer

Go to Terminal type which pdftex

You will get a result of the form /something_1/something_2/.../something_n/pdftex

Copy /something_1/something_2/.../something_n/

Go to TeXShop>Preferences>Engine in the first box of that says path settings Paste.

That is all. This worked for me. This way you are changing the path setting manually.