[Tex/LaTex] Latexmk Command not found after MacOS El Capitan Upgrade

latexmkmac

I recently upgraded to El Capitan on my mac, and as a result, terminal no longer recognizes the command "latexmk". For example, I get the following from terminal:

Tylers-MacBook-Pro:Dropbox SaiyanSparta$ latexmk -pvc -pdf cat.tex
-bash: latexmk: command not found

I use vim for my text editor and obviously compile with latexmk in the terminal. Prior to my upgrade, "latexmk" worked perfectly fine, but now it does not work ata ll. Does anyone know of any potential fix for this? I checked this article but I didn't really understand what it meant. Can anyone help me out, preferably in layman terms? Thanks!

Best Answer

Upgraded from a comment since it seems to have solved the problem: Apple made some configuration changes in El Capitan that changed the location of the latexmk command file. These are detailed in the installation notes for the LaTeX editor TexStudio. I'm not in reach of my MacBook right now so I can't give you the exact details but the above might give you the clues you need to fix this problem. Also, have a look at tug.org/mactex/UpdatingForElCapitan.pdf