HOWTO: Installing and compiling the latest latex and kile packages in Ubuntu Dapper Drake

Tetex is no longer mantained (see http://www.tug.org/tetex/), so if we want the latest and greatest, we must install the latex system from the latest TeX live cd install.

First of all remove tetex-base, tetex-common, tetex-bin and kile from the repos.

The tetex package is no longer mantained so get the TeX Live Cd and kile source code from :

http://www.tug.org/ftp/texlive/Images/

http://kile.sourceforge.net/download.php

Get the packages texlive2005-inst-20051102.iso.zip and kile-1.9.1.tar.bz2

Once downloaded the tex live cd iso image unzip it by:

unzip texlive2005-inst-20051102.iso.zip and you’ll get the iso image. Burn it using your preferred burning app.

Installing the Tex system:

Go to the directory where the TeX Live cd is mounted /media/cdrom and execute:

sudo bash ./install-tl.sh

You’ll get a menu with several options:

Type S (Scheme) and C (install everything).

Type D (Directory) and you’ll get the predefined installation directories. You don’t have to change them if you don’t want to. The 2 option I changed it to /usr/local/texmf-local but the default is Ok.

Press R to return to the main menu and type I (install). It will take a while to install the tex system in your computer. Once finished you’ll get the following:

texconfiguraciolivecd.png

Add the following line to your .bashrc:

PATH=$PATH:/usr/local/texlive/2005/bin/i386-linux
close the Console, open a new one and you’ll get all the latex tools in the command line 🙂

When running latex if you get the error:

/home/yourusername/.texlive2005/texmf-var/ls-R: Permission denied

then go into the /home/yourusername/.texlive2005/texmf-var/ and type

sudo chown username:username ls-R

Installing Kile from source

Install the following packages from the repos:

kde-devel

xlibs-dev

Take into account that kde-devel has more than one hundred dependencies, but it takes less than 15 minutes to download them and install them if you are in a broadband connection.

type:

tar -xjvf kile-1.9.1.tar.bz2

cd kile-1.9.1

type kde-config – -prefix and you’ll get /usr

then

./configure – -prefix=/usr

if you don’t get any errors, then

make

and sudo make install. That’s all

If you need the latex2html package download it from http://www.latex2html.org/ and get the package

latex2html-2002-2-1.tar.gz

type:

./configure

make

sudo make install

Happy TeXing!!

Advertisements

About jordilin

I'm a Senior Software Engineer with an MSc in Telecommunications Engineering. I've got a range of interests including Linux, a very powerful and limitless operating system, travelling, gastronomy and technology.
This entry was posted in HOWTOs. Bookmark the permalink.

4 Responses to HOWTO: Installing and compiling the latest latex and kile packages in Ubuntu Dapper Drake

  1. Pingback: Installing Texlive2005 in FreeBSD « An Ubuntu Linux user in Catalonia

  2. tredinertok says:

    Hello

    Very interesting information! Thanks!

    Bye

  3. Kittybriton says:

    July 2006! This is getting pretty ancient, but I have an old machine that is still running Dapper and hope to install TeTeX following these instructions soonish. Can I ping you if I hit any snags?

  4. Kittybriton says:

    PING! E: Package texi2html has no installation candidate – can you suggest a workaround? (Xubuntu Dapper)

    Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s