source: pst/typesetting/texlive.xml@ a3fc68a

7.6-blfs 7.6-systemd kde5-14269 kde5-14686 systemd-13485
Last change on this file since a3fc68a was a3fc68a, checked in by Krejzi <krejzi@…>, 10 years ago

Merged trunk.

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

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