1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY texlive-source-download-http " ">
|
---|
8 | <!ENTITY texlive-source-download-ftp "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&texlive-version;-source.tar.xz">
|
---|
9 | <!ENTITY texlive-source-md5sum "09ee265ff51637827559affc7304078c">
|
---|
10 | <!ENTITY texlive-source-size "40 MB">
|
---|
11 |
|
---|
12 | <!-- buildsize is the source dir, plus the kpathsea files installed to /usr.
|
---|
13 | The progs in bin/ARCH/ seem slightly smaller (shared libs) -->
|
---|
14 | <!ENTITY texlive-buildsize "555 MB">
|
---|
15 | <!ENTITY texlive-time "8.4 SBU">
|
---|
16 | ]>
|
---|
17 |
|
---|
18 | <sect1 id="texlive" xreflabel="texlive-&texlive-version;">
|
---|
19 | <?dbhtml filename="texlive.html"?>
|
---|
20 |
|
---|
21 | <sect1info>
|
---|
22 | <othername>$LastChangedBy$</othername>
|
---|
23 | <date>$Date$</date>
|
---|
24 | </sect1info>
|
---|
25 |
|
---|
26 | <title>texlive-&texlive-version;</title>
|
---|
27 |
|
---|
28 | <indexterm zone="texlive">
|
---|
29 | <primary sortas="a-texlive">texlive</primary>
|
---|
30 | </indexterm>
|
---|
31 |
|
---|
32 | <sect2 role="package">
|
---|
33 | <title>Introduction to TeX Live from source</title>
|
---|
34 |
|
---|
35 | <para>A binary version of the <application>TeX Live</application> package
|
---|
36 | is installed at <xref linkend="tl-installer"/>. Here, we use that to rebuild
|
---|
37 | the compiled programs from source.</para>
|
---|
38 |
|
---|
39 | &lfs75_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>Download (HTTP): <ulink url="&texlive-source-download-http;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download (FTP): <ulink url="&texlive-source-download-ftp;"/></para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download MD5 sum: &texlive-source-md5sum;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Download size: &texlive-source-size;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated disk space required: &texlive-buildsize;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Estimated build time: &texlive-time;</para>
|
---|
60 | </listitem>
|
---|
61 | </itemizedlist>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect3">TeX Live Dependencies</bridgehead>
|
---|
64 |
|
---|
65 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
66 | <para role="required">
|
---|
67 | <xref linkend="tl-installer"/> or a previous version of TeX Live
|
---|
68 | (untested, you would need to alter the configure switches which refer
|
---|
69 | to &texlive-year; so that it overwrites your existing installation, or
|
---|
70 | else copy everything to the location for the current year), and
|
---|
71 | <xref linkend="clisp"/> (to build <command>xindy</command> which is an
|
---|
72 | index processor for multi-lingual index creation)
|
---|
73 | </para>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
76 | <para role="recommended">
|
---|
77 | <xref linkend="gs"/> (for dvisvgm - used by asymptote which provides a
|
---|
78 | mathematical coordinate-based framework for technical drawing),
|
---|
79 | <xref linkend="x-window-system"/>
|
---|
80 | </para>
|
---|
81 | <para>
|
---|
82 | The source ships with its own versions of <emphasis>many</emphasis>
|
---|
83 | libraries, and will use them unless it is forced to use the system
|
---|
84 | versions. The following are recommended so that the system version
|
---|
85 | will be used:
|
---|
86 | <xref linkend="fontconfig"/>,
|
---|
87 | <xref linkend="freetype2"/>,
|
---|
88 | <xref linkend="gc"/>,
|
---|
89 | <xref linkend="graphite2"/>,
|
---|
90 | <xref linkend="harfbuzz"/> (linked to graphite2),
|
---|
91 | <xref linkend="icu"/>,
|
---|
92 | <xref linkend="libpaper"/>,
|
---|
93 | <xref linkend="libpng"/>,
|
---|
94 | <xref linkend="poppler"/>
|
---|
95 | </para>
|
---|
96 |
|
---|
97 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
98 | <para>
|
---|
99 | The source ships with its own versions of several libraries which are either
|
---|
100 | not under active development, or only used for limited functionality. If
|
---|
101 | you install these, as with some other optional dependencies in this book you
|
---|
102 | will need to tell <command>configure</command> to use the system versions.
|
---|
103 | <ulink url="http://libgd.bitbucket.org">GD</ulink>,
|
---|
104 | <ulink url="http://fossies.org/linux/misc/t1lib-5.1.2.tar.gz/">t1lib</ulink>,
|
---|
105 | <ulink url="http://sourceforge.net/projects/zziplib/">ZZIPlib</ulink>,
|
---|
106 | <ulink url="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=TECkitDownloads">TECkit</ulink>
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <bridgehead renderas="sect4">Runtime dependencies</bridgehead>
|
---|
110 | <para role="recommended">
|
---|
111 | Some (re-installed) scripts will use
|
---|
112 | <xref linkend="python2"/> or <xref linkend="ruby"/>.
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <para condition="html" role="usernotes">User Notes:
|
---|
116 | <ulink url="&blfs-wiki;/texlive"/></para>
|
---|
117 |
|
---|
118 | </sect2>
|
---|
119 |
|
---|
120 | <sect2 role="installation">
|
---|
121 | <title>Installation of TeX Live</title>
|
---|
122 |
|
---|
123 | <para>These instructions will overwrite the corresponding files from the
|
---|
124 | binary installer. As with the installer, change x86_64-linux to whatever
|
---|
125 | matches your architecture.</para>
|
---|
126 |
|
---|
127 | <para>Please note that installing from source will recompile the binary
|
---|
128 | programs and recreate the <literal>man</literal> and <literal>info</literal>
|
---|
129 | files. It will also overwrite the scripts - some of these may be older
|
---|
130 | versions than those from the newer installer. It will <emphasis>not</emphasis>
|
---|
131 | recreate any of the following: the more than 200 symlinks in the
|
---|
132 | x86_64-linux directory (some are alternate names, many are pointers to
|
---|
133 | the scripts), html files, PDF files, licenses, README files, two config
|
---|
134 | files (<filename>texmf.cnf</filename> and <filename>texmfcnf.lua</filename>),
|
---|
135 | nor the many package and font files in
|
---|
136 | <filename class="directory">texmf-dist</filename> and
|
---|
137 | <filename class="directory">texmf-var</filename>, nor the files recording
|
---|
138 | the actions of the installer, and the <filename>ls-R</filename> files listing
|
---|
139 | what was originally installed.</para>
|
---|
140 |
|
---|
141 | <para>Asy and the rest of asymptote is by default not rebuilt, so we have to
|
---|
142 | separately run <command>configure</command> and <command>make</command> in its
|
---|
143 | directory.
|
---|
144 | </para>
|
---|
145 |
|
---|
146 | <screen><userinput>mkdir texlive-build &&
|
---|
147 | cd texlive-build &&
|
---|
148 |
|
---|
149 | ../configure \
|
---|
150 | --prefix=/opt/texlive/&texlive-year; \
|
---|
151 | --bindir=/opt/texlive/&texlive-year;/bin/x86_64-linux \
|
---|
152 | --datarootdir=/opt/texlive/&texlive-year; \
|
---|
153 | --includedir=/usr/include \
|
---|
154 | --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
|
---|
155 | --libdir=/usr/lib \
|
---|
156 | --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
|
---|
157 | --disable-native-texlive-build \
|
---|
158 | --disable-static --enable-shared \
|
---|
159 | --with-system-cairo \
|
---|
160 | --with-system-fontconfig \
|
---|
161 | --with-system-freetype2 \
|
---|
162 | --with-system-graphite2 \
|
---|
163 | --with-system-harfbuzz \
|
---|
164 | --with-system-icu \
|
---|
165 | --with-system-libgs \
|
---|
166 | --with-system-libpng \
|
---|
167 | --with-system-pixman \
|
---|
168 | --with-system-poppler \
|
---|
169 | --with-system-xpdf \
|
---|
170 | --with-system-zlib \
|
---|
171 | --with-banner-add=" - BLFS" \
|
---|
172 | --enable-xindy \
|
---|
173 | --enable-xindy-rules \
|
---|
174 | --enable-xindy-doc \
|
---|
175 | --with-clisp-runtime=system</userinput></screen>
|
---|
176 |
|
---|
177 | <para>Asymptote has to be separately configured. It ships with its own copy
|
---|
178 | of the gc source tarball, and will only use the system version if that local
|
---|
179 | source is removed.
|
---|
180 | </para>
|
---|
181 |
|
---|
182 | <screen><userinput>pushd ../utils/asymptote &&
|
---|
183 | rm -v gc-7.4.0.tar.gz &&
|
---|
184 |
|
---|
185 | echo "ac_cv_lib_m_sqrt=yes" >config.cache &&
|
---|
186 | echo "ac_cv_lib_z_deflate=yes" >>config.cache &&
|
---|
187 |
|
---|
188 | ./configure LIBS="-ltirpc " \
|
---|
189 | --prefix=/opt/texlive/&texlive-year;/ \
|
---|
190 | --bindir=/opt/texlive/&texlive-year;/bin/x86_64-linux \
|
---|
191 | --enable-texlive-build \
|
---|
192 | --datarootdir=/opt/texlive/&texlive-year;/texmf-dist \
|
---|
193 | --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
|
---|
194 | --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
|
---|
195 | --cache-file=config.cache &&
|
---|
196 | popd &&
|
---|
197 |
|
---|
198 | make &&
|
---|
199 | make -C ../utils/asymptote</userinput></screen>
|
---|
200 |
|
---|
201 | <para>To test the results, issue: <command>make -k check &&
|
---|
202 | make -C utils/asymptote check</command>.</para>
|
---|
203 |
|
---|
204 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
205 | user:</para>
|
---|
206 |
|
---|
207 | <screen><userinput role="root">make install &&
|
---|
208 | make -C ../utils/asymptote install</userinput></screen>
|
---|
209 |
|
---|
210 | <para>One part of the package remains to be rebuilt:
|
---|
211 | <xref linkend="biber"/>.</para>
|
---|
212 |
|
---|
213 | </sect2>
|
---|
214 |
|
---|
215 | <sect2 role="commands">
|
---|
216 | <title>Command Explanations</title>
|
---|
217 |
|
---|
218 | <para>
|
---|
219 | <parameter>--prefix=, --bindir=, --datarootdir=, --infodir=, --mandir= ...
|
---|
220 | </parameter>: these switches ensure that the files installed from source
|
---|
221 | will overwrite the corresponding files previously installed by
|
---|
222 | <application>install-tl</application>.
|
---|
223 | </para>
|
---|
224 |
|
---|
225 | <para>
|
---|
226 | <parameter>--includedir=, --libdir= ...</parameter> : these switches ensure
|
---|
227 | that the libraries will be found at runtime, and that programs can be
|
---|
228 | compiled against them.
|
---|
229 | </para>
|
---|
230 |
|
---|
231 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
232 | href="../../xincludes/static-libraries.xml"/>
|
---|
233 |
|
---|
234 | <para>
|
---|
235 | <parameter>--enable-shared</parameter>: Use shared versions of
|
---|
236 | <filename class="libraryfile">libkpathsea</filename> and
|
---|
237 | <filename class="libraryfile">libptexenc</filename>.
|
---|
238 | </para>
|
---|
239 |
|
---|
240 | <para>
|
---|
241 | <parameter>--with-system-...</parameter>: Unless this parameter is used,
|
---|
242 | the included versions of these libraries will be statically compiled
|
---|
243 | into the programs which need them. If you decided not to install a
|
---|
244 | recommended library, omit the corresponding switches.
|
---|
245 | </para>
|
---|
246 |
|
---|
247 | <para>
|
---|
248 | <parameter>--with-system-xpdf</parameter>: Uniquely, this parameter has
|
---|
249 | a non-standard meaning, it tells <command>configure</command> to use the
|
---|
250 | system-installed <application>poppler</application> headers and library.
|
---|
251 | Again, omit this if you have not installed
|
---|
252 | <application>poppler</application>.
|
---|
253 | </para>
|
---|
254 |
|
---|
255 | <para>
|
---|
256 | <parameter>echo "ac_cv_lib_m_sqrt=yes" ... LIBS="-ltirpc " >config.cache,
|
---|
257 | ... --cache-file=config.cache</parameter> : The configure scripts in
|
---|
258 | <application>TeX Live</application> are uncommon. Asymptote not only has to
|
---|
259 | be separately configured and built, the configure script fails to find the
|
---|
260 | shared <filename class="libraryfile">libtirpc.so</filename>. Passing that
|
---|
261 | in LIBS breaks the tests for (static) libm and (shared) libz, so we have to
|
---|
262 | fix things up, in much the same way as when cross-compiling.
|
---|
263 | </para>
|
---|
264 |
|
---|
265 | <para>
|
---|
266 | <option>--without-x</option>: use this (and omit the configure and make in
|
---|
267 | <filename>utils/asymptote</filename> if you do not have Xorg installed.
|
---|
268 | </para>
|
---|
269 |
|
---|
270 | </sect2>
|
---|
271 |
|
---|
272 | <sect2 role="content">
|
---|
273 | <title>Contents</title>
|
---|
274 |
|
---|
275 | <segmentedlist>
|
---|
276 | <segtitle>Installed Programs</segtitle>
|
---|
277 | <segtitle>Installed Libraries</segtitle>
|
---|
278 | <segtitle>Installed Directories</segtitle>
|
---|
279 |
|
---|
280 | <seglistitem>
|
---|
281 | <seg>Over 300 binaries and symlinks to scripts</seg>
|
---|
282 | <seg>libkpathsea.so, libptexenc.so</seg>
|
---|
283 | <seg>/opt/texlive, /usr/include/kpathsea, /usr/include/ptexenc</seg>
|
---|
284 | </seglistitem>
|
---|
285 | </segmentedlist>
|
---|
286 |
|
---|
287 | <variablelist>
|
---|
288 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
289 | <?dbfo list-presentation="list"?>
|
---|
290 | <?dbhtml list-presentation="table"?>
|
---|
291 |
|
---|
292 | <varlistentry id="texlive-programs">
|
---|
293 | <term><command>TeX programs</command></term>
|
---|
294 | <listitem>
|
---|
295 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
296 | href="../../xincludes/texprogs.xml"/>
|
---|
297 | <indexterm zone="texlive texlive-programs">
|
---|
298 | <primary sortas="b-texlive-programs">TeX Live programs</primary>
|
---|
299 | </indexterm>
|
---|
300 | </listitem>
|
---|
301 | </varlistentry>
|
---|
302 |
|
---|
303 | <varlistentry id="libkpathsea">
|
---|
304 | <term><filename class="libraryfile">libkpathsea.so</filename></term>
|
---|
305 | <listitem>
|
---|
306 | <para>
|
---|
307 | (kpathsearch) exists to look up a file in a list of directories.
|
---|
308 | </para>
|
---|
309 | <indexterm zone="texlive libkpathsea">
|
---|
310 | <primary sortas="c-libkpathsea">libkpathsea.so</primary>
|
---|
311 | </indexterm>
|
---|
312 | </listitem>
|
---|
313 | </varlistentry>
|
---|
314 |
|
---|
315 | <varlistentry id="libptexenc">
|
---|
316 | <term><filename class="libraryfile">libptexenc.so</filename></term>
|
---|
317 | <listitem>
|
---|
318 | <para>
|
---|
319 | is a library for Japanese pTeX (publishing TeX).
|
---|
320 | </para>
|
---|
321 | <indexterm zone="texlive libptexenc">
|
---|
322 | <primary sortas="c-libptexenc">libptexenc.so</primary>
|
---|
323 | </indexterm>
|
---|
324 | </listitem>
|
---|
325 | </varlistentry>
|
---|
326 | </variablelist>
|
---|
327 |
|
---|
328 | </sect2>
|
---|
329 |
|
---|
330 | </sect1>
|
---|