source: pst/typesetting/texlive.xml@ c5207e4

perl-modules
Last change on this file since c5207e4 was c5207e4, checked in by Ken Moffat <ken@…>, 6 years ago

perl modules branch: merge trunk r20598:20625.

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

  • Property mode set to 100644
File size: 17.6 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-download-http " ">
8 <!ENTITY texlive-download-ftp "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&texlive-version;-source.tar.xz">
9 <!ENTITY texlive-md5sum "41d1e8874d266935c656fe51b440a413">
10 <!ENTITY texlive-size "48 MB">
11
12 <!ENTITY texlive-buildsize "6.5 GB including the additional download (+179 MB for the tests), 5.3 GB installed">
13 <!ENTITY texlive-time "9.8 SBU including the additional download (+0.3 SBU for the tests)">
14
15 <!ENTITY texlive-texmf-download-http " ">
16 <!ENTITY texlive-texmf-download-ftp "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&texmf-version;-texmf.tar.xz">
17 <!ENTITY texlive-texmf-md5sum "05330b3b5445ef60b08a0ed660c55c92">
18 <!ENTITY texlive-texmf-size "2.5 GB">
19
20]>
21
22
23<sect1 id="texlive" xreflabel="texlive-&texlive-version;">
24 <?dbhtml filename="texlive.html"?>
25
26 <sect1info>
27 <othername>$LastChangedBy$</othername>
28 <date>$Date$</date>
29 </sect1info>
30
31 <title>texlive-&texlive-version;-source</title>
32
33 <indexterm zone="texlive">
34 <primary sortas="a-texlive">texlive</primary>
35 </indexterm>
36
37 <sect2 role="package">
38 <title>Introduction to TeX Live from source</title>
39
40 <para>Most of TeX Live can be built from source without a pre-existing
41 installation, but <application>xindy</application> (for indexing) needs
42 working versions of <command>latex</command> and <command>pdflatex</command>
43 when configure is run, and the testsuite and install for
44 <command>asy</command> (for vector graphics) will fail if TeX has not
45 already been installed. Additionally, <application>biber</application> is
46 not provided within the <application>texlive</application> source.</para>
47
48 <para>All of those packages are dealt with on their own pages and can be
49 built after installing this package. If you have not already done so, you
50 should start at <xref linkend="tex-path"/> so that the final commands to
51 initialise the new installation will be found.</para>
52
53 &lfs83_checked;
54
55 <bridgehead renderas="sect3">Package Information</bridgehead>
56 <itemizedlist spacing="compact">
57 <listitem>
58 <para>Download (HTTP): <ulink url="&texlive-download-http;"/></para>
59 </listitem>
60 <listitem>
61 <para>Download (FTP): <ulink url="&texlive-download-ftp;"/></para>
62 </listitem>
63 <listitem>
64 <para>Download MD5 sum: &texlive-md5sum;</para>
65 </listitem>
66 <listitem>
67 <para>Download size: &texlive-size;</para>
68 </listitem>
69 <listitem>
70 <para>Estimated disk space required: &texlive-buildsize;</para>
71 </listitem>
72 <listitem>
73 <para>Estimated build time: &texlive-time;</para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Required Additional Downloads</bridgehead>
78
79 <para>Much of the texlive environment (including scripts, documentation,
80 fonts and various other files) is not part of the source tarball. You must
81 download it separately. This will give you all of the additional files
82 which are provided by a full install of the binary version, there is no
83 realistic way to restrict which parts get installed.</para>
84
85 <para>
86 Because of the size of this package, it is unlikely to be mirrored by
87 BLFS mirrors. In case of difficulty, go to http://www.ctan.org/mirrors/
88 to find a more-accessible mirror.
89 </para>
90
91 <itemizedlist spacing="compact">
92 <listitem>
93 <para>Download (HTTP): <ulink url="&texlive-texmf-download-http;"/></para>
94 </listitem>
95 <listitem>
96 <para>Download (FTP): <ulink url="&texlive-texmf-download-ftp;"/></para>
97 </listitem>
98 <listitem>
99 <para>Download MD5 sum: &texlive-texmf-md5sum;</para>
100 </listitem>
101 <listitem>
102 <para>Download size: &texlive-texmf-size;</para>
103 </listitem>
104 <listitem>
105 <para>Required patch: <ulink
106 url="&patch-root;/texlive-&texlive-version;-source-upstream_fixes-2.patch"/></para>
107 </listitem>
108 </itemizedlist>
109
110 <bridgehead renderas="sect3">TeX Live from source Dependencies</bridgehead>
111
112 <bridgehead renderas="sect4">Recommended</bridgehead>
113 <para role="recommended">
114 <xref linkend="gs"/> <emphasis>including
115 <filename>libgs.so</filename></emphasis> (for dvisvgm, which is used by e.g.
116 <xref role="nodep" linkend="asymptote"/>),
117 <xref linkend="x-window-system"/>
118 </para>
119
120 <!-- text for recommended libraries -->
121 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
122 href="../../xincludes/texrecommendlibs.xml"/>
123
124 <bridgehead renderas="sect4">Optional</bridgehead>
125 <!-- text for optional deps -->
126 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
127 href="../../xincludes/texoptional.xml"/>
128
129 <bridgehead renderas="sect4">Runtime dependencies</bridgehead>
130 <!-- text for runtime deps, shared with tl-installer -->
131 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
132 href="../../xincludes/texruntime.xml"/>
133
134 <para condition="html" role="usernotes">User Notes:
135 <ulink url="&blfs-wiki;/texlive"/></para>
136
137 </sect2>
138
139 <sect2 role="installation">
140 <title>Installation of TeX Live</title>
141
142 <para>
143 Install TeX Live by running the following commands:
144 </para>
145
146 <para>The shared libraries will be installed into a texlive directory.
147 As the <systemitem class="username">root</systemitem> user, add it to
148 your <filename>/etc/ld.so.conf</filename>:</para>
149
150<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; EOF
151<literal># Begin texlive &texlive-year; addition
152
153/opt/texlive/&texlive-year;/lib
154
155# End texlive &texlive-year; addition</literal>
156EOF</userinput></screen>
157
158 <note>
159 <para>
160 From 2015 onwards, a successful install requires some texlive
161 commands to be run as the root user, so we will export the TEXARCH
162 variable to let <systemitem class="username">root</systemitem> use it.
163 </para>
164
165 <para>
166 If you came here to update an old system (because of the recent
167 vulnerability) where the poppler version is before 0.62.0, such as
168 BLFS-8.1, do NOT use the commands in the <literal>MYPOPPLER</literal>
169 block of instructions, nor the <literal>--with-system-poppler</literal>
170 or <literal>--with-system-xpdf</literal> options when configuring.
171 </para>
172 </note>
173
174 <para>
175 Now, as a normal user:
176 </para>
177<screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;
178
179patch -Np1 -i ../texlive-&texlive-version;-source-upstream_fixes-2.patch &amp;&amp;
180
181let MYPOPPLER=$(pkg-config --modversion poppler | cut -d '.' -f2)
182mv -v texk/web2c/pdftexdir/pdftosrc{-newpoppler,}.cc
183if [ $MYPOPPLER -lt 68 ]; then
184 mv -v texk/web2c/pdftexdir/pdftoepdf{-newpoppler,}.cc
185elif [ $MYPOPPLER -lt 69 ]; then
186 mv -v texk/web2c/pdftexdir/pdftoepdf{-poppler0.68.0,}.cc
187else
188 mv -v texk/web2c/pdftexdir/pdftoepdf{-poppler0.69.0,}.cc
189fi &amp;&amp;
190unset MYPOPPLER &amp;&amp;
191
192mkdir texlive-build &amp;&amp;
193cd texlive-build &amp;&amp;
194
195../configure \
196 --prefix=/opt/texlive/&texlive-year; \
197 --bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \
198 --datarootdir=/opt/texlive/&texlive-year; \
199 --includedir=/opt/texlive/&texlive-year;/include \
200 --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
201 --libdir=/opt/texlive/&texlive-year;/lib \
202 --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
203 --disable-native-texlive-build \
204 --disable-static --enable-shared \
205 --with-system-cairo \
206 --with-system-fontconfig \
207 --with-system-freetype2 \
208 --with-system-gmp \
209 --with-system-graphite2 \
210 --with-system-harfbuzz \
211 --with-system-icu \
212 --with-system-libgs \
213 --with-system-libpaper \
214 --with-system-libpng \
215 --with-system-mpfr \
216 --with-system-pixman \
217 --with-system-poppler \
218 --with-system-potrace \
219 --with-system-xpdf \
220 --with-system-zlib \
221 --with-banner-add=" - BLFS" &amp;&amp;
222
223make</userinput></screen>
224
225 <para>To test the results, issue: <command>make check</command>
226 A few tests may SKIP because kpathsea
227 has not yet been installed.</para>
228
229 <para>Now, as the <systemitem class="username">root</systemitem>
230 user:</para>
231
232<!-- Editors, you can run 'make texlinks' in a DESTDIR by passing
233DESTDIR#some/where -->
234<screen role="root"><userinput>make install-strip &amp;&amp;
235/sbin/ldconfig &amp;&amp;
236make texlinks &amp;&amp;
237mkdir -pv /opt/texlive/&texlive-year;/tlpkg/TeXLive/ &amp;&amp;
238install -v -m644 ../texk/tests/TeXLive/* /opt/texlive/&texlive-year;/tlpkg/TeXLive/</userinput></screen>
239
240 <note>
241 <para>
242 Only run <command>make texlinks</command> once. If it is rerun,
243 it can change all the program symlinks so that they point to
244 themselves and are useless.
245 </para>
246 </note>
247
248 <para>Now install the additional files as the
249 <systemitem class="username">root</systemitem> user:</para>
250
251<!-- if texmf does not need to be patched, remove &amp;&amp; from first line,
252 close userinput, screen, comment pushd, patch, popd -->
253<screen role="root"><userinput>tar -xf ../../texlive-&texmf-version;-texmf.tar.xz -C /opt/texlive/&texlive-year; --strip-components=1</userinput></screen>
254
255 <para>Still as the <systemitem class="username">root</systemitem> user,
256 initialise the new system (the commands <command>fmtutil-sys --all</command>
257 and <command>mtxrun --generate</command> will produce a
258 <emphasis>lot</emphasis> of output):</para>
259
260<!-- Editors, fmtutil-sys and mtxrun \-\-generate can apparently only be run on
261a real install, as root. But mktexlsr can be run in a DESTDIR with
262cd /YOUR/TEXMF/ROOT ; ls -LAR ./ >ls-R -->
263
264<screen role="root"><userinput>mktexlsr &amp;&amp;
265fmtutil-sys --all &amp;&amp;
266mtxrun --generate</userinput></screen>
267
268 <para>You can now proceed to <xref linkend="asymptote"/>,
269 <xref linkend="biber"/> and / or <xref linkend="xindy"/> if you
270 wish to install them.</para>
271
272 </sect2>
273
274 <sect2 role="commands">
275 <title>Command Explanations</title>
276
277 <para>
278 <command>patch -Np1 -i ../texlive-&texlive-version;-source-upstream_fixes-2.patch</command>:
279 various problems have come to light since the shipped source was frozen to
280 be committed to DVDs. In particular, a segmentation fault in dvipdfm-x from
281 XeTeX and changes in newer versions of <application>poppler</application>,
282 also an important vulnerability fix.
283 </para>
284
285 <para>
286 <command>let MYPOPPLER=...</command>: Because the vulnerability fix applies to
287 many past years of <application>texlive</application>, the tests aim to allow
288 updating using system versions of poppler since 0.62.0. The amended files for
289 newer versions of poppler need to be copied over the original versions,
290 depending on which version is being used.
291 </para>
292
293 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
294 href="../../xincludes/tex-prefix.xml"/>
295
296 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
297 href="../../xincludes/tex-lib.xml"/>
298
299 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
300 href="../../xincludes/static-libraries.xml"/>
301
302 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
303 href="../../xincludes/tex-shared.xml"/>
304
305 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
306 href="../../xincludes/tex-system.xml"/>
307
308 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
309 href="../../xincludes/tex-xpdf.xml"/>
310
311 <para>
312 <option>--without-x</option>: use this if you do not have Xorg installed.
313 </para>
314
315 <para>
316 <command>/sbin/ldconfig</command>: this has to be run here so that <command>make
317 texlinks</command> can use kpsewhich.
318 </para>
319
320 <para>
321 <command>make texlinks</command> : this runs the texlinks.sh script
322 to create symbolic links from formats to engines. In
323 practice, several of the targets such as <command>xetex</command> are now
324 separate binaries and for these it will report "file already exists".
325 </para>
326
327 <para>
328 <command>tar -xf texlive-&texmf-version;-texmf.tar.xz -C /opt/texlive/&texlive-year; --strip-components=1</command>:
329 the tarball contains the files for the texmf-dist directory, and because
330 of its size we do not want to waste time and space untarring it and then
331 copying the files.
332 </para>
333
334 <para>
335 <command>install -v -m644 ../texk/tests/TeXLive/*
336 /opt/texlive/&texlive-year;/tlpkg/TeXLive/</command>: This puts the perl
337 modules <filename>TLConfig.pm</filename> and <filename>TLUtils.pm</filename>
338 into the directory where the binary installer puts them - it is at the
339 start of the perl @INC@ PATH within texlive when installed using the above
340 configure switches. Without these modules, texlive is unusable.
341 </para>
342
343 <para>
344 <command>mktexlsr</command>: Create an <filename>ls-R</filename> file
345 which lists what was installed - this is used by kpathsea to find files.
346 </para>
347
348 <para>
349 <command>fmtutil-sys --all</command>: This initialises the TeX formats,
350 Metafont bases and Metapost mems.
351 </para>
352
353 <para>
354 <command>mtxrun --generate</command>: This initialise the ConTeXt system.
355 </para>
356
357 </sect2>
358
359 <sect2 role="content">
360 <title>Contents</title>
361
362 <segmentedlist>
363 <segtitle>Installed Programs</segtitle>
364 <segtitle>Installed Libraries</segtitle>
365 <segtitle>Installed Directories</segtitle>
366
367 <seglistitem>
368 <seg>Over 300 binaries and symlinks to scripts</seg>
369 <seg>libkpathsea.so, libptexenc.so, libsynctex.so, libtexlua52.so,
370 libtexluajit.so</seg>
371 <seg>/opt/texlive/&texlive-year;/bin, /opt/texlive/&texlive-year;/include,
372 /opt/texlive/&texlive-year;/lib, /opt/texlive/&texlive-year;/texmf-dist</seg>
373 </seglistitem>
374 </segmentedlist>
375
376 <variablelist>
377 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
378 <?dbfo list-presentation="list"?>
379 <?dbhtml list-presentation="table"?>
380
381 <varlistentry id="texlive-programs">
382 <term><command>TeX&nbsp;programs</command></term>
383 <listitem>
384 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
385 href="../../xincludes/texprogs.xml"/>
386 <indexterm zone="texlive texlive-programs">
387 <primary sortas="b-texlive-programs">TeX Live programs</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="libkpathsea">
393 <term><filename class="libraryfile">libkpathsea.so</filename></term>
394 <listitem>
395 <para>
396 (kpathsearch) exists to look up a file in a list of directories
397 and is used by <command>kpsewhich</command>.
398 </para>
399 <indexterm zone="texlive libkpathsea">
400 <primary sortas="c-libkpathsea">libkpathsea.so</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
404
405 <varlistentry id="libptexenc">
406 <term><filename class="libraryfile">libptexenc.so</filename></term>
407 <listitem>
408 <para>
409 is a library for Japanese pTeX (publishing TeX).
410 </para>
411 <indexterm zone="texlive libptexenc">
412 <primary sortas="c-libptexenc">libptexenc.so</primary>
413 </indexterm>
414 </listitem>
415 </varlistentry>
416
417 <varlistentry id="libsynctex">
418 <term><filename class="libraryfile">libsynctex.so</filename></term>
419 <listitem>
420 <para>
421 is the SyncTeX (Synchronize TeXnology) parser library.
422 </para>
423 <indexterm zone="texlive libsynctex">
424 <primary sortas="c-libsynctex">libsynctex.so</primary>
425 </indexterm>
426 </listitem>
427 </varlistentry>
428
429 <varlistentry id="libtexlua52">
430 <term><filename class="libraryfile">libtexlua52.so</filename></term>
431 <listitem>
432 <para>
433 provides Lua 5.2, modified for use with LuaTeX.
434 </para>
435 <indexterm zone="texlive libtexlua52">
436 <primary sortas="c-libtexlua52">libtexlua52.so</primary>
437 </indexterm>
438 </listitem>
439 </varlistentry>
440
441 <varlistentry id="libtexluajit">
442 <term><filename class="libraryfile">libtexluajit.so</filename></term>
443 <listitem>
444 <para>
445 provides LuaJIT, modified for use with LuaJITTeX.
446 </para>
447 <indexterm zone="texlive libtexluajit">
448 <primary sortas="c-libtexluajit">libtexluajit.so</primary>
449 </indexterm>
450 </listitem>
451 </varlistentry>
452 </variablelist>
453
454 </sect2>
455
456</sect1>
Note: See TracBrowser for help on using the repository browser.