I followed this instructions to install a vanilla version of texlive. Everything worked out fine except the part where I have finalize the installation. I used grep -n texbin /etc/environment || sudo sed -i.bak -e /PATH/s/\\\"$/:\\\/opt\\\/texbin\"/ /etc/environment to add the path to PATH. After logging out and signing in which tex still shows /usr/bin/tex which is my old installation of texlive, installed using apt-get, instead of opt/texbin as it should be.
When compiling a .tex file using xelatex I get erorrs and the header shows that it is the 2013 version instead of the 2015 I just installed. If I use /opt/texbin/xelatex everything works fine.
I figured out that I should add /opt/texbin/ at first in the /etc/environment. I did this, but even after rebooting echo $PATH doesn't show /opt/texbin at all and which tex still shows /usr/bin/tex.
I use Ubuntu 14.04 LTS and running in zsh.
How can I modify the file to fix this?
/opt/texbinin front of the current value ofPATH, not at the end. What's the output ofecho $PATHafter rebooting? – egreg Apr 03 '16 at 13:25echo $PATHoutputs/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/gamesand/etc/environmentcontainsPATH="/opt/texbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"– fukurai Apr 03 '16 at 13:33/etc/profile.droute, by adding atexlive.shfile in that directory, containingexport PATH=/opt/texbin:${PATH}, rather than modifying/etc/environment. – egreg Apr 03 '16 at 13:36echo $PATHdoesn't contain/opt/texbinAm I right that I don't have a folder
– fukurai Apr 03 '16 at 14:24texbinin/optbut rather a symlink namedtexbin?/opt/texbinshould be a symbolic link to/usr/local/texlive/2015/bin/x86_64-linux. You may have some setting of the path in your.profileor.bashrc, please check. – egreg Apr 03 '16 at 14:30.zshrcAdded/opt/texbinin front and nowwhich texsolves for/opt/texbin/tex. – fukurai Apr 03 '16 at 14:50.zshrc– egreg Apr 03 '16 at 15:11