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

来源:百度文库 编辑:神马文学网 时间:2024/04/28 17:41:21
July 31st, 2006 — jordilin
Tetex is no longer mantained (seehttp://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 packagestexlive2005-inst-20051102.iso.zip andkile-1.9.1.tar.bz2
Once downloaded the tex live cd iso image unzip it by:
unziptexlive2005-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 installationdirectories. You don’t have to change them if you don’t want to. The 2option 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 willtake a while to install the tex system in your computer. Once finishedyou’ll get the following:

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 hundreddependencies, but it takes less than 15 minutes to download them andinstall them if you are in a broadband connection.
type:
tar -xjvfkile-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 fromhttp://www.latex2html.org/ and get the package
latex2html-2002-2-1.tar.gz
type:
./configure
make
sudo make install
Happy TeXing!!