I've installed texlive-2012 on my local user account (under linux), the system has the older version (texlive-2007) in which some packages are missing and I don't have root permission to install those packages.
To force the system recognize my installation I changed some search paths in ~/.bashrc
as suggested in similar post:
export TEXMF='{/home/avaz/texlive/texmf,/home/avaz/texlive/texmf-dist/tex/latex/base,/home/avaz/texlive/texmf-var,/home/avaz/texlive/texmf-config,/home/avaz/texmf,/etc/texmf,confTEXMFSYSVAR,confTEXMFLOCAL,confTEXMFMAIN,confTEXMFDIST}'
export TEXMFHOME='/home/avaz/texlive/texmf'
export TEXMFLOCAL='/home/avaz/texlive/texmf'
which obviously /home/avaz/
is my home folder where texlive-2012 is installed,
but when I run ~/textlive/bin/x86_64-linux/latex myfile.tex
I get the error:
! LaTeX Error: File `article.cls' not found.
'article.cls' is located in ~/texlive/texmf-dist/tex/latex/base/
, but I don't why latex doesn't go through this. This is an excerpt I get with texconfig conf
:
=========================== kpathsea variables ===========================
TEXMFMAIN=/usr/share/texmf
TEXMFDIST=/usr/share/texmf
TEXMFLOCAL=/home/avaz/texlive/texmf
TEXMFSYSVAR=/var/lib/texmf
TEXMFSYSCONFIG=/etc/texmf
TEXMFHOME=/home/avaz/texlive/texmf
Have I done something wrong or anything left which I have to change to work it out?
~/.bashrc
and ask the terminalecho $TEXMF
, what do you get? In any case, you need to changePATH
so that the binaries of TeX Live 2012 are found before the system wide ones.PATH
?export PATH=~/texlive/bin/x86_64-linux:${PATH}
in your.bashrc
file and restart the terminal. Don't setTEXMF
and similar variables..bashrc
otherwise I get 'tcfmgr.map' errorTEXMF
based ontexmf.cnf
. You generally have to set nothing in the environment, except the path to the binaries.