PDA

View Full Version : How to install TeX live on SLED 11



barcau
29-May-2013, 10:29
Hello Suse forums,

I just bought a new laptop and i have SLED 11 installed on it I want to install TeX live but when i try to run it on Terminal it says "Goodbye, Acces Denied".

Can somoane please tell me what are the exact steps for installing this program?I am new in linux.



Yours sincerely,

M.

mikewillis
29-May-2013, 12:57
Hello Suse forums,

I just bought a new laptop and i have SLED 11 installed on it I want to install TeX live but when i try to run it on Terminal it says "Goodbye, Acces Denied".

Can somoane please tell me what are the exact steps for installing this program?I am new in linux.


When asking for help with something that doesn't wok it's useful to explain exactly what it is you're doing. E.g. you say you "try to run it" but you don't say what it is that you're running. So it's very difficult to advise on why it doesn't work.

The easiest way to get TexLive is to install the version that is included with SLED. You can do that in YaST > Software > Software Management. The version included in SLED 11 SP2 is very old though, it's TexLive 2007.

If you want to install the current version of TeXLive you can do this using install-tl-unx.tar.gz from http://www.tug.org/texlive/acquire-netinstall.html Assuming you're the only person who uses your computer and you're not concerned with making TeXLive available to other users, you can run the installer as yourself and install TeXLive in to your home directory. (Trying to replace the version of TeXLive included in SLED is not something I advise you attempt if you're new to Linux. It can quickly get messy.)

These commands will download the install-tl-unx.tar.gz file, unpack it and then run the installer.


$ cd
$ curl -L http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz | tar xvfz -
$ cd install-tl-20130407
$ ./install-tl -gui perltk

Change the TEXDIR value to ~/texlive then click Install TeXLive and a copy of TeXLive will be installed in your home directory in the directory 'texlive'.

When you come to use TeXLive you'll need to either explicitly invoke the commands, e.g.

$ ~/texlive/bin/x86_64-linux/pdflatex

or better is to to modify some shell environment variables to add the bin directory to your PATH. Add these lines to your ~/.bashrc file


TEXDIR=~/texlive
export PATH=${TEXDIR}/bin/x86_64-linux/:${PATH}
export MANPATH=${TEXDIR}/texmf/doc/man:${MANPATH}
export INFOPATH=${TEXDIR}/texmf/doc/info:${INFOPATH}

Now log out and in again for that change to take effect. If you then run


$ which pdflatex
The output should say /home/your_usercode_here/texlive/x86_64-linux/bin

Note that the above paths assume you are using 64bit Linux. The 86_64-linux part will be different if you're using 32bit.


Sometimes you can find packages at http://software.opensuse.org/search but the only TeXLive packages I found there for SLED were for TeXLive 2010 and for SLED 11 SP1 (which is End of Life).