Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have two different versions of TexLive: the Ubuntu binaries for TexLive 2012, which live in usr/share, and TexLive 2013 which lives in usr/local. As per instructions here, my PATH now looks like the following:

echo $PATH
/usr/local/texlive/2013/bin/x68_64-linux:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

The PATH is set in both my .bashrc and .profile files by

PATH=/usr/local/texlive/2013/bin/x68_64-linux:$PATH
export $PATH    

Yet, whenever I run pdflatex or xelatex, it is taking the Ubuntu TexLive 2012 versions, while I need TexLive 2013. (specifically, running xelatex my_example.tex results in some errors like LaTeX Error: File `unicode-math.sty' not found.)

My TexLive 2013 does exist: ls -l /usr/local/texlive/2013/bin/x68_64-linux returns the following.

To use TexLive 2013, I need to manually run something like: /usr/loca/texlive/2013/bin/x68_64-linux/xelatex my_example.tex (this does not return the unicode-math errors and generates the pdf nicely).

Also (tlmgr is not in Ubuntu distributions of TexLive):

tlgmr
No command 'tlmgr' found, did you mean:
Command 'rlmgr' from package 'qdbm-util' (universe)
Command 'vlmgr' from package 'qdbm-util' (universe)
tlmgr: command not found

But:

/usr/local/texlive/2013/bin/x86_64-linux/tlmgr
tlmgr: missing action; try --help if you need it.

How can I set my PATH correctly that it takes TexLive 2013 as default?

share|improve this question
    
Do you need both versions because of backward compatibility reasons? If not, I would recommend switching to texlive 2013 via a Ubuntu PPA rather than installing your own additional version and complicating your system further. –  arielf Aug 2 '13 at 18:29
    
Since I was just dealing with a very similar problem successfully, my guess would be the executables are not really in your path. You may want to narrow down the problem be checking which latex. Do you for instance have proper read/write permissions for all binaries in /usr/local/texlive/2013/bin/x68_64-linux? –  bluenote10 Mar 18 at 19:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.