[Tex/LaTex] Installing Texlive on Debian x86-64 Platform

installingpackagestexlive

I had previously worked with the texlive distribution provided in the Debian repository, but I came across many inconveniences as a result of it being outdated (no tlmgr; forced to manually update and install packages, etc.) So I decided to remove the package and reinstall texlive using the installer provided by the CTAN website.

After waiting several hours for it install all the packages, latex does not seem to recognize any of the new packages that should have come with the 2011 texlive distribution (e.g. adforn). Furthermore, tlmgr did not show up as a recognized command. So I try

cd /usr/local/texlive/2011/bin/x86_64-linux/
sudo ./tlmgr --self --update all

But the operation fails, with the following output.

tlmgr: package repository http://mirrors.ibiblio.org/pub/mirrors/CTAN/systems/texlive/tlnet
Fundamental package texlive.infra not present, uh oh, goodbyeSerious error, texlive.infra not found at ./tlmgr line 4949.

I have not been able to find much useful information online regarding the error message. Do you have any ideas as to how I can fix tlmgr and get latex to recognize the newly-installed packages?

Thanks for the help!

Best Answer

I think, your problem is that /usr/local/texlive/2011/bin/x86_64-linux/ is not in the path. Try

export PATH=/usr/local/texlive/2011/bin/x86_64-linux/":$PATH"

I normally install texlive as follows (Debian wheezy amd64):

As root

mkdir /opt/texlive
chown <user>.<group> /opt/texlive

As user, run install-tl and follow the normal installlation procedure.

Add

TEXLIVE="/opt/texlive/2011/bin/x86_64-linux"
export PATH=$TEXLIVE":$PATH"

somewhere at the end of your ~/.bashrc file

This method allows you to install texlive without intefering with the debian texlive packages.