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?
~/.bashrcand ask the terminalecho $TEXMF, what do you get? In any case, you need to changePATHso that the binaries of TeX Live 2012 are found before the system wide ones. – egreg Dec 06 '12 at 23:27PATH? – pasha Dec 06 '12 at 23:52export PATH=~/texlive/bin/x86_64-linux:${PATH}in your.bashrcfile and restart the terminal. Don't setTEXMFand similar variables. – egreg Dec 06 '12 at 23:54.bashrcotherwise I get 'tcfmgr.map' error – pasha Dec 07 '12 at 00:45TEXMFbased ontexmf.cnf. You generally have to set nothing in the environment, except the path to the binaries. – egreg Dec 07 '12 at 00:51declare -x TEXMF=...I suppose it setsTEXMFas a constant variable I removed it withunset. Now it works as you said. Thanks! – pasha Dec 07 '12 at 01:06