I'm new to LaTeX/TeX and recently installed MacTeX on my MacBook. Everything seems to work fine (I'm able to create and typeset files with TeXShop).
Now I want to compile some files via command line and read that I need to change into the projects directory and execute pdflatex my_file.tex. Sadly MacTeX doesn't seem to ship pdflatex. which pdflatex returns nothing.
Should pdflatex be included in MacTeX and my installation is broken?
I already reinstalled MacTeX and checked the MD5 hash to verify that I have the right MacTeX installer...
What can I do to compile my .tex-files?
pdflatexis not a full-fledged file in the normal sense of the word "file", but "merely" a so-called symbolic link to the filepdftex, which is located in/usr/local/texlive/2016/bin/x86_64-darwin. You should get a help menu type-out if you typepdflatex --helpat a command prompt. – Mico Sep 11 '16 at 15:59/usr/local/texlive/2016/bin/x86_64-darwinexists, butpdflatex --helpisn't a command. Seems like the symbolic link is missing. – Sep 11 '16 at 16:06echo $PATHreturn (from the command line)? And what aboutls /etc/paths.d? – egreg Sep 11 '16 at 16:07/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin– Sep 11 '16 at 16:08ls /etc/paths.dreturn? – egreg Sep 11 '16 at 16:09pdflatex --helpisn't a command"? – Mico Sep 11 '16 at 16:10/etc/paths.ddoesn't exist. – Sep 11 '16 at 16:11pdflatexas a command. – Sep 11 '16 at 16:11/usr/local/texlive/2016/bin/x86_64-darwin/pdflatex --help. Not a solution, but possibly useful for now. – cfr Sep 11 '16 at 16:16which pdflatexshould still return a result ifpdflatexis in PATH. Even if it is a symbolic link. (Indeed, even if it is a broken link.) – cfr Sep 11 '16 at 16:17which pdflatexandecho $PATHreturn? Do you set a PATH in your ~/.profile (or ~/.bash_profile)? – Herb Schulz Sep 11 '16 at 17:51/etc/paths.d, so if you don't want to close your terminal window you can also runeval $(/usr/libexec/path_helper)– Samuel Peter Feb 19 '18 at 18:15