Notes on TeX Live setup

From STMDocs
Revision as of 15:39, 31 August 2008 by Thanh (talk | contribs) (→‎Install TL)
Jump to navigation Jump to search

Introduction

This page describe steps to install TeXLive (TL from now) and needed tweaks to use TL data with self-compiled binaries. This is useful if we want to run for example pdftex compiled from sources instead of pre-compiled pdftex binary coming with TL.

Overview of involved steps

  • we download the whole TL iso image to disk, mount it permanently and run the TL install script, choose the method to run TL from directly from media.
  • after installation, we adjust the configuration so that non-TL binaries can also use TL data.

This approach takes some disk space (~2.5GB for TL2008), but has some advantages:

  • installation is quick: all data are available on disk, no need to copy bunch of files from dvd.
  • installation is complete: everything from TL is installed.
  • upgrade is quick: replace current the TL iso image by the new one, and that's it.

Install TL

  • download latest TL iso image to /opt/iso-images (this is my preference, feel free to use any location you prefer)
  • unpack the image:

<geshi lang="sh"> cd /opt/iso-images unlzma texlive2008.iso.lzma </geshi>

  • mount the image:

<geshi lang="sh"> sudo mkdir -p /mnt/texlive2008 sudo mount -t iso9660 -o loop /opt/iso-images/texlive2008.iso /mnt/texlive2008/ </geshi>

  • run the TL installer:

<geshi lang="sh"> sudo perl /mnt/texlive2008/install-tl </geshi>

  • when the menu is up, choose <V> set up for running from DVD by entering v<Enter>
  • in next menu:
    • change the destination of installation to /opt/texlive/2008 by entering:
d<Enter>
1<Enter>
/opt/texlive/2008<Enter>
r<Enter>
  • start the installation process by entering i<Enter>. When the installation process is done, the last messages should like this:
 ...

 See 
   /mnt/texlive2008/index.html 
 for links to documentation.  The TeX Live web site (http://tug.org/texlive/) 
 contains any updates and corrections.

 TeX Live is a joint project of the TeX user groups around the world;
 please consider supporting it by joining the group best for you. The
 list of groups is available on the web at http://tug.org/usergroups.html.

 Add /mnt/texlive2008/texmf/doc/man to MANPATH.
 Add /mnt/texlive2008/texmf/doc/info to INFOPATH.
 Set TEXMFCNF to /opt/texlive/2008/texmf-var/web2c.
 Most importantly, add /mnt/texlive2008/bin/i386-linux
 to your PATH for current and future sessions.

 Welcome to TeX Live!

/mnt/texlive2008/install-tl: done.
Logfile: /opt/texlive/2008/install-tl.log
  • post-installation chores:

<geshi lang="sh"> export PATH=$PATH:/mnt/texlive2008/bin/i386-linux export TEXMFSYSVAR=/opt/texlive/2008/texmf-var/ </geshi>

  • test the installation:

<geshi lang="sh"> cd /tmp pdflatex sample2e </geshi>

  • if things go well, we should get the below log:
$ pdflatex sample2e
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
 %&-line parsing enabled.
entering extended mode
(/mnt/texlive2008/texmf-dist/tex/latex/base/sample2e.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, la
tin, mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, romanian, rus
sian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turkish, ukenglis
h, ukrainian, uppersorbian, welsh, loaded.
(/mnt/texlive2008/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/mnt/texlive2008/texmf-dist/tex/latex/base/size10.clo))
No file sample2e.aux.
(/mnt/texlive2008/texmf-dist/tex/latex/base/omscmr.fd) [1{/opt/texlive/2008/tex
mf-var/fonts/map/pdftex/updmap/pdftex.map}] [2] [3] (./sample2e.aux) )</mnt/tex
live2008/texmf-dist/fonts/type1/bluesky/cm/cmbx12.pfb></mnt/texlive2008/texmf-d
ist/fonts/type1/bluesky/cm/cmex10.pfb></mnt/texlive2008/texmf-dist/fonts/type1/
bluesky/cm/cmmi10.pfb></mnt/texlive2008/texmf-dist/fonts/type1/bluesky/cm/cmmi7
.pfb></mnt/texlive2008/texmf-dist/fonts/type1/bluesky/cm/cmr10.pfb></mnt/texliv
e2008/texmf-dist/fonts/type1/bluesky/cm/cmr12.pfb></mnt/texlive2008/texmf-dist/
fonts/type1/bluesky/cm/cmr17.pfb></mnt/texlive2008/texmf-dist/fonts/type1/blues
ky/cm/cmr6.pfb></mnt/texlive2008/texmf-dist/fonts/type1/bluesky/cm/cmr7.pfb></m
nt/texlive2008/texmf-dist/fonts/type1/bluesky/cm/cmr8.pfb></mnt/texlive2008/tex
mf-dist/fonts/type1/bluesky/cm/cmsy10.pfb></mnt/texlive2008/texmf-dist/fonts/ty
pe1/bluesky/cm/cmsy7.pfb></mnt/texlive2008/texmf-dist/fonts/type1/bluesky/cm/cm
ti10.pfb>
Output written on sample2e.pdf (3 pages, 69560 bytes).
Transcript written on sample2e.log.