I always used TeXShop in the Mac for the last 7 years but now I need to run the compilation remotely. If I run in the terminal (bash shell): XeLaTeX file.tex I get
kpathsea: Running mktexfmt XeLaTeX.fmt I can't find the format fileXeLaTeX.fmt'!` - my guess it is some basic PATH information is missing. I tried man XeLaTeX but I get no manual entry for XeLaTeX. Is there a way I could just extract the settings TeXShop is using?
In this question I can't find the format file xelatex.fmt the answers are suggestion to re-install texlive but the op there said this did not solve the problem. And here since TeXShop works fine, re-installing does not seem a good idea.
The file exists here: /usr/local/texlive/2014/texmf-var/web2c/xetex/xelatex.fmt
I did sudo hash again as Sean Alfred suggested and this time, it worked. Now it compiles fine.