I am trying to compile a file using the terminal and it keeps failing. In the past I was able to compile latex files easily using terminal but it suddenly started failing. The only change I remember now I have recently done is installing some packages in Texmate to work with it when writing Tex documents. However I am unable to find the way to fix it.
Literally, when I run the Makefile i get:
$ make latex paper.tex make: latex: No such file or directory make: *** [dvi] Error 1
Hence, I just tried the commands latex and so and got also errors:
$ latex -bash: latex: command not found
Than I just wanted to know which version of tex distro I was using, however it seems unable to find it:
$ tex --version -bash: tex: command not found
I suspect that it is the PATH variable in .bash_profile. However I have tried setting multiple paths... but cannot achieve it! How do I obtain the path where all tex commands are stored? For instance, doing some research, I found the path
/usr/texbin, however this does not exist on my computer.
- I am runing on Mac OS X El Capitan
- The compilation works with an IDE (texmaker), however I was not satisfied with the result with it (number of citations does not appear, instead I get [?] eventhough I compile it 10 times).
At the moment, the PATH variable in ~/.bash_profile is:
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin export PATH=/usr/local/texlive:$PATH export PATH=/opt/X11/bin:$PATH export PATH=~/.scripts:$PATH export PATH=/usr/bin/latex:$PATH export PATH=/usr/texbin:$PATH
But it is not enough... any ideas?