ALSO POSTED HERE I didn't know about this tex.stackexchange untill after that post
I am trying to learn LaTeX and I am running Linux mint 15 x64. I have installed "texlive" and followed this installation guide:
http://www.tug.org/texlive/quickinstall.html
The problem I am having is, as the title suggests when I set my PATH variable to the LaTeX directory, it works fine for one terminal window only, if I exit that terminal window the PATH no longer points to the LaTeX install, thus I have to reset it every time which is rather annoying.
I am using the following command:
PATH=/usr/local/texlive/2013/bin/x86_64-linux/:$PATH
then when I do:
echo $PATH I get this result:
/usr/local/texlive/2013/bin/x86_64-linux/:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
and I can do this:
latex --version
pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013)
kpathsea version 6.1.1
Copyright 2013 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.5.16; using libpng 1.5.16
Compiled with zlib 1.2.7; using zlib 1.2.7
Compiled with xpdf version 3.03
which is as expected, but when I close the terminal window, and re-open it I get the following:
echo $PATH
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <--- missing the latex path
and when I check the version:
latex --version:
The program LaTeX is currently not installed. You can install it by typing:
sudo apt-get install texlive-latex-base
I have also tried doing the same as the super-user, I get the same end product.
Any have a solution to this problem?
Thanks
PATH=/usr/local/texlive/2013/bin/x86_64-linux/:$PATH-- in a terminal..? That will only 'stick' while you are using that terminal in the same way I can writezzz=/media/seagate/docsand then use it thus:cp somefile.txt $zzz/(it will copy the file to/media/seagate/docs/, but only while using that terminal: once it is closed, the variable 'zzz' is lost). – jon Jan 14 '14 at 04:52~/.profile:PATH=/usr/local/texlive/2013/bin/x86_64-linux:$PATH MANPATH=/usr/local/texlive/2013/texmf-dist/doc/man:$MANPATH INFOPATH=/usr/local/texlive/2013/texmf-dist/doc/info:$INFOPATH. – jon Jan 14 '14 at 04:55