分享

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

 billdoors 2007-02-20

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

Tetex is no longer mantained (see http://www./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./ftp/texlive/Images/

http://kile./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./ and get the package

latex2html-2002-2-1.tar.gz

type:

./configure

make

sudo make install

Happy TeXing!!

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多