source: pst/typesetting/texlive.xml@ 9df316ee

7.6-blfs 7.6-systemd kde5-14686 systemd-13485
Last change on this file since 9df316ee was 9df316ee, checked in by Christopher Gregory <cjg@…>, 10 years ago

More tags.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14372 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 13.0 KB
Line 
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 &lfs76_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="libpng"/>,
93 <xref linkend="poppler"/>
94 </para>
95
96 <bridgehead renderas="sect4">Optional</bridgehead>
97 <para>
98 The source ships with its own versions of several libraries which are either
99 not under active development, or only used for limited functionality. If
100 you install these, as with some other optional dependencies in this book you
101 will need to tell <command>configure</command> to use the system versions.
102 <ulink url="http://libgd.bitbucket.org">GD</ulink>,
103 <ulink url="http://fossies.org/linux/misc/t1lib-5.1.2.tar.gz/">t1lib</ulink>,
104 <ulink url="http://sourceforge.net/projects/zziplib/">ZZIPlib</ulink>,
105 <ulink url="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=TECkitDownloads">TECkit</ulink>
106 </para>
107
108 <bridgehead renderas="sect4">Runtime dependencies</bridgehead>
109 <para role="recommended">
110 Some (re-installed) scripts will use
111 <xref linkend="python2"/> or <xref linkend="ruby"/>.
112 </para>
113
114 <para condition="html" role="usernotes">User Notes:
115 <ulink url="&blfs-wiki;/texlive"/></para>
116
117 </sect2>
118
119 <sect2 role="installation">
120 <title>Installation of TeX Live</title>
121
122 <para>These instructions will overwrite the corresponding files from the
123 binary installer. As with the installer, change x86_64-linux to whatever
124 matches your architecture.</para>
125
126 <para>Please note that installing from source will recompile the binary
127 programs and recreate the <literal>man</literal> and <literal>info</literal>
128 files. It will also overwrite the scripts - some of these may be older
129 versions than those from the newer installer. It will <emphasis>not</emphasis>
130 recreate any of the following: the more than 200 symlinks in the
131 x86_64-linux directory (some are alternate names, many are pointers to
132 the scripts), html files, PDF files, licenses, README files, two config
133 files (<filename>texmf.cnf</filename> and <filename>texmfcnf.lua</filename>),
134 nor the many package and font files in
135 <filename class="directory">texmf-dist</filename> and
136 <filename class="directory">texmf-var</filename>, nor the files recording
137 the actions of the installer, and the <filename>ls-R</filename> files listing
138 what was originally installed.</para>
139
140 <para>Asy and the rest of asymptote is by default not rebuilt, so we have to
141 separately run <command>configure</command> and <command>make</command> in its
142 directory.
143 </para>
144
145<screen><userinput>mkdir texlive-build &amp;&amp;
146cd texlive-build &amp;&amp;
147
148../configure \
149 --prefix=/opt/texlive/&texlive-year; \
150 --bindir=/opt/texlive/&texlive-year;/bin/x86_64-linux \
151 --datarootdir=/opt/texlive/&texlive-year; \
152 --includedir=/usr/include \
153 --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
154 --libdir=/usr/lib \
155 --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
156 --disable-native-texlive-build \
157 --disable-static --enable-shared \
158 --with-system-cairo \
159 --with-system-fontconfig \
160 --with-system-freetype2 \
161 --with-system-graphite2 \
162 --with-system-harfbuzz \
163 --with-system-icu \
164 --with-system-libgs \
165 --with-system-libpng \
166 --with-system-pixman \
167 --with-system-poppler \
168 --with-system-xpdf \
169 --with-system-zlib \
170 --with-banner-add=" - BLFS" \
171 --enable-xindy \
172 --enable-xindy-rules \
173 --enable-xindy-doc \
174 --with-clisp-runtime=system</userinput></screen>
175
176 <para>Asymptote has to be separately configured. It ships with its own copy
177 of the gc source tarball, and will only use the system version if that local
178 source is removed.
179 </para>
180
181<screen><userinput>pushd ../utils/asymptote &amp;&amp;
182rm -v gc-7.4.0.tar.gz &amp;&amp;
183
184echo "ac_cv_lib_m_sqrt=yes" >config.cache &amp;&amp;
185echo "ac_cv_lib_z_deflate=yes" >>config.cache &amp;&amp;
186
187./configure LIBS="-ltirpc " \
188 --prefix=/opt/texlive/&texlive-year;/ \
189 --bindir=/opt/texlive/&texlive-year;/bin/x86_64-linux \
190 --enable-texlive-build \
191 --datarootdir=/opt/texlive/&texlive-year;/texmf-dist \
192 --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
193 --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
194 --cache-file=config.cache &amp;&amp;
195popd &amp;&amp;
196
197make &amp;&amp;
198make -C ../utils/asymptote</userinput></screen>
199
200 <para>To test the results, issue: <command>make -k check &amp;&amp;
201 make -C utils/asymptote check</command>.</para>
202
203 <para>Now, as the <systemitem class="username">root</systemitem>
204 user:</para>
205
206<screen><userinput role="root">make install &amp;&amp;
207make -C ../utils/asymptote install</userinput></screen>
208
209 <para>One part of the package remains to be rebuilt:
210 <xref linkend="biber"/>.</para>
211
212 </sect2>
213
214 <sect2 role="commands">
215 <title>Command Explanations</title>
216
217 <para>
218 <parameter>--prefix=, --bindir=, --datarootdir=, --infodir=, --mandir= ...
219 </parameter>: these switches ensure that the files installed from source
220 will overwrite the corresponding files previously installed by
221 <application>install-tl</application>.
222 </para>
223
224 <para>
225 <parameter>--includedir=, --libdir= ...</parameter> : these switches ensure
226 that the libraries will be found at runtime, and that programs can be
227 compiled against them.
228 </para>
229
230 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
231 href="../../xincludes/static-libraries.xml"/>
232
233 <para>
234 <parameter>--enable-shared</parameter>: Use shared versions of
235 <filename class="libraryfile">libkpathsea</filename> and
236 <filename class="libraryfile">libptexenc</filename>.
237 </para>
238
239 <para>
240 <parameter>--with-system-...</parameter>: Unless this parameter is used,
241 the included versions of these libraries will be statically compiled
242 into the programs which need them. If you decided not to install a
243 recommended library, omit the corresponding switches.
244 </para>
245
246 <para>
247 <parameter>--with-system-xpdf</parameter>: Uniquely, this parameter has
248 a non-standard meaning, it tells <command>configure</command> to use the
249 system-installed <application>poppler</application> headers and library.
250 Again, omit this if you have not installed
251 <application>poppler</application>.
252 </para>
253
254 <para>
255 <parameter>echo "ac_cv_lib_m_sqrt=yes" ... LIBS="-ltirpc " &gt;config.cache,
256 ... --cache-file=config.cache</parameter> : The configure scripts in
257 <application>TeX Live</application> are uncommon. Asymptote not only has to
258 be separately configured and built, the configure script fails to find the
259 shared <filename class="libraryfile">libtirpc.so</filename>. Passing that
260 in LIBS breaks the tests for (static) libm and (shared) libz, so we have to
261 fix things up, in much the same way as when cross-compiling.
262 </para>
263
264 <para>
265 <option>--without-x</option>: use this (and omit the configure and make in
266 <filename>utils/asymptote</filename> if you do not have Xorg installed.
267 </para>
268
269 </sect2>
270
271 <sect2 role="content">
272 <title>Contents</title>
273
274 <segmentedlist>
275 <segtitle>Installed Programs</segtitle>
276 <segtitle>Installed Libraries</segtitle>
277 <segtitle>Installed Directories</segtitle>
278
279 <seglistitem>
280 <seg>Over 300 binaries and symlinks to scripts</seg>
281 <seg>libkpathsea.so, libptexenc.so</seg>
282 <seg>/opt/texlive, /usr/include/kpathsea, /usr/include/ptexenc</seg>
283 </seglistitem>
284 </segmentedlist>
285
286 <variablelist>
287 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
288 <?dbfo list-presentation="list"?>
289 <?dbhtml list-presentation="table"?>
290
291 <varlistentry id="texlive-programs">
292 <term><command>TeX&nbsp;programs</command></term>
293 <listitem>
294 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
295 href="../../xincludes/texprogs.xml"/>
296 <indexterm zone="texlive texlive-programs">
297 <primary sortas="b-texlive-programs">TeX Live programs</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="libkpathsea">
303 <term><filename class="libraryfile">libkpathsea.so</filename></term>
304 <listitem>
305 <para>
306 (kpathsearch) exists to look up a file in a list of directories.
307 </para>
308 <indexterm zone="texlive libkpathsea">
309 <primary sortas="c-libkpathsea">libkpathsea.so</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 <varlistentry id="libptexenc">
315 <term><filename class="libraryfile">libptexenc.so</filename></term>
316 <listitem>
317 <para>
318 is a library for Japanese pTeX (publishing TeX).
319 </para>
320 <indexterm zone="texlive libptexenc">
321 <primary sortas="c-libptexenc">libptexenc.so</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325 </variablelist>
326
327 </sect2>
328
329</sect1>
Note: See TracBrowser for help on using the repository browser.