[Tex/LaTex] I can’t use PDFlatex using apple mac!


I have recently joined the mac club and I am having trouble using pdflatex. I have installed MacTex which should have everything included but when trying to run typeset I receive the error

'/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.'

I have searched for pdflatex and could not find it anywhere…can anyone help me? I have read other forums which say reinstalling MacTex doesn't work and I also did this and it made no difference.

Extra info:

OS 10.10.1 Yosemite
I have reasonable experience using linux / terminal

Best Answer

I think I figured it out.

Go into your terminal and type in: which pdftex

You should get some sort of directory where your latex is installed. like: /opt/local/bin/pdftex

What you should do now is to change the directory where TexShop looks.

Do this by going into Preferences > Engine: and changing the path settings to the directory that which pdftex gave out.

I put /opt/local/bin/ and it worked out for me.

Looking around on the internet tells me that this is a macports problem. So you have to change it manually.