1 TITLE: Installation of TeX and LyX
2 LFS VERSION: 2.3.2 or better.
3 AUTHOR: Arthur H. Johnson II <arthur@linuxbox.nu>
6 How to install TeX from source.
9 TeX can be almost trivial to install, once you have the right sources. However
10 if you get the wrong sources, you will chase your tail for hours.
12 We will be using the texk source from the TeX users group. First, download the
19 2. Compiling and Installing TeX
20 3. Compiling and Installing LyX
21 4. TeX with LFS and other packages
28 a. Required from ftp://ftp.tug.org/tex/:
30 texk-7.2b.tar.bz2 An all-in-one source package for web2c plus the
31 various drivers. Does need the library packages.
33 texmflib-7.8.tar.bz2 A basic set of TFM's and other input files,
34 arranged in Web2c's default installation hierarchy.
37 b. Required from ftp://ncmir.ucsd.edu/pub/xforms/linux-i386/elf/:
39 bxform-089-glibc2.1.tar.bz2 This is the toolkit in which LyX is built on.
43 c. Required from ftp://ftp.lyx.org/pub/lyx/stable/:
45 lyx-1.1.6fix4.tar.bz2 This is the latest LyX at the time of writing. This is
46 a front-end to the TeX typesetting system. Actually,
47 its a front-end to LaTeX which is a front-end to TeX.
48 It is not actually required for TeX or LaTeX.
51 d. Optional from ftp://tug.ctan.org/pub/tex/fonts:
53 You may want more than the fonts included with your texmflib distribution. You
58 2 COMPILING AND INSTALLING TEX
59 ==============================
62 a. Install the texmflib package into /usr/share:
65 tar jxvf /path/to/packages/texmflib-7.8.tar.bz2
67 This will add the support files to your already existing texmf directory
71 b. Using the texk-7.2b.tar.bz2, compile and install TeX onto your system by
72 issueing the following commands:
74 ./configure --prefix=/usr/ --datadir=/usr/share/
80 3 COMPILING AND INSTALLING LYX
81 ==============================
83 a. Install XForms with the following commands:
89 b. Install LyX with the following commands:
91 ./configure --prefix=/usr/X11R6
97 4 TEX WITH LFS AND OTHER PACKAGES
98 =================================
100 Some packages, most noteably gcc, will not compile on a system containing TeX.
101 There is a quick workaround for this however. Move /usr/bin/texconfig to
102 /usr/bin/texconfig.lfs before you build your packages.
104 If you use a set of scripts, or ALFS, to build LFS, one technique to do
105 this automatically would be an if loop in your LFS build:
107 if [ -f /usr/bin/texconfig ]; then
108 mv /usr/bin/texconfig /usr/bin/texconfig.lfs;
111 <build LFS or other packages, including ALFS based systems>
113 if [ -f /usr/bin/texconfig.lfs ]; then
114 mv /usr/bin/texconfig.lfs /usr/bin/texconfig;
117 This way texconfig will be restored to its origional state when you are done
124 20020201 Add table of contents.
125 Fix section numbering.
128 20020131 Initial release.