I've installed the current version of texlive (2012), which installs its binaries into /usr/local/texlive/2011/bin/i386-linux/
. I subsequently added this directory to the PATH variable by modifying the /etc/environment
file, since I want this installed for all users:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/texlive/2012/bin/i386-linux"
I then proceeded to remove the texlive
apt-suite packages, since I was getting errors when trying to compile .tex
documents that showed me a texlive 2009 distribution came prepackaged with my Lubuntu 12.04.
Now something pretty strange happens:
~ which pdflatex
/usr/local/texlive/2012/bin/i386-linux/pdflatex
So it seems the binary is being found. Still, the following happens:
~ pdflatex foo.tex
/usr/bin/pdflatex: File not found!
Why is it looking ìn /usr/bin/
? Is this some kind of bash
internal cache for binary locations (I vaguely remember hearing something about this)?
What would be a possible fix?
type -a pdflatex
show?