source: pst/typesetting/texlive.xml@ 2e099a8

ken/TL2024 lazarus trunk
Last change on this file since 2e099a8 was 2e099a8, checked in by Ken Moffat <zarniwhoop@…>, 4 months ago

texlive - use TeX Live for all instances of name.

I changed some of these in previous commits, but users get upset
if things are inconsistent.

  • Property mode set to 100644
File size: 20.3 KB
Line 
1<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
2 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../../general.ent">
4 %general-entities;
5
6 <!-- utah -->
7 <!ENTITY texlive-download-http "https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/&texlive-year;/texlive-&texlive-version;-source.tar.xz">
8 <!ENTITY texlive-download-ftp " ">
9 <!ENTITY texlive-md5sum "1da2f08e3ba4a3708870dd088c1d6823">
10 <!ENTITY texlive-size "67 MB">
11
12 <!ENTITY texlive-buildsize "8.5 GB including the additional download and the tests, 7.7 GB installed">
13 <!ENTITY texlive-time "2.3 SBU including the additional download and the tests, building with parallelism=4">
14
15 <!-- utah -->
16 <!ENTITY texlive-texmf-download-http "https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/&texlive-year;/texlive-&texlive-version;-texmf.tar.xz">
17 <!ENTITY texlive-texmf-download-ftp " ">
18 <!ENTITY texlive-texmf-md5sum "e67ce334dd0fddda5f4a87b4fcaaf48f">
19 <!ENTITY texlive-texmf-size "4.0 GB">
20
21 <!ENTITY texlive-extra-download-http "https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/&texlive-year;/texlive-&texlive-version;-extra.tar.xz">
22 <!ENTITY texlive-extra-download-ftp " ">
23 <!ENTITY texlive-extra-md5sum "1bd045bd1673ce61bde590c10b86c6cc">
24 <!ENTITY texlive-extra-size "1.9 MB">
25
26]>
27
28
29<sect1 id="texlive" xreflabel="texlive-&texlive-version;">
30 <?dbhtml filename="texlive.html"?>
31
32
33 <title>texlive-&texlive-version;-source</title>
34
35 <indexterm zone="texlive">
36 <primary sortas="a-texlive">texlive</primary>
37 </indexterm>
38
39 <sect2 role="package">
40 <title>Introduction to TeX Live from source</title>
41
42 <note>
43 <para>
44 According to <ulink url="https://www.tug.org/historic/"/> the master
45 site in France only supports ftp and rsync. Now that ftp is generally
46 deprecated, that page has links to mirrors, some of which support https,
47 e.g. in Utah and Chemnitz as well as in China. If you prefer to use a
48 different mirror from the example links here, you will need to navigate
49 to systems/historic/texlive/&texlive-year; or systems/texlive/&texlive-year;
50 as the case may be.
51 <!-- the chinese mirros do not use a 'historic' subdirectory. -->
52 </para>
53 </note>
54
55 <para>
56 Most of TeX Live can be built from source without a pre-existing
57 installation, but <application>xindy</application> (for indexing) needs
58 working versions of <command>latex</command> and
59 <command>pdflatex</command> when configure is run, and the test suite
60 and install for <command>asy</command> (for vector graphics) will fail
61 if TeX has not already been installed. Additionally,
62 <application>biber</application> is not provided within the
63 <application>texlive</application> source and the version of
64 <application>dvisvgm</application> in the
65 <application>texlive</application> tree cannot be built
66 if shared system libraries are used.
67 </para>
68
69 <para>
70 </para>
71 <para>
72 All of those packages are dealt with on their own pages and can be
73 built after installing this package. If you have not already done so, you
74 should start at <xref linkend="tex-path"/> so that the final commands to
75 initialize the new installation will be found.
76 </para>
77
78 &lfs121_checked;
79
80 <bridgehead renderas="sect3">Package Information</bridgehead>
81 <itemizedlist spacing="compact">
82 <listitem>
83 <para>
84 Download (HTTP): <ulink url="&texlive-download-http;"/>
85 </para>
86 </listitem>
87 <listitem>
88 <para>
89 Download (FTP): <ulink url="&texlive-download-ftp;"/>
90 </para>
91 </listitem>
92 <listitem>
93 <para>
94 Download MD5 sum: &texlive-md5sum;
95 </para>
96 </listitem>
97 <listitem>
98 <para>
99 Download size: &texlive-size;
100 </para>
101 </listitem>
102 <listitem>
103 <para>
104 Estimated disk space required: &texlive-buildsize;
105 </para>
106 </listitem>
107 <listitem>
108 <para>
109 Estimated build time: &texlive-time;
110 </para>
111 </listitem>
112 </itemizedlist>
113
114 <bridgehead renderas="sect3">Required Additional Downloads</bridgehead>
115
116 <para>
117 Much of the texlive environment (including scripts, documentation,
118 fonts, and various other files) is not part of the source tarball.
119 You must download it separately. This will give you all of the
120 additional files which are provided by a full install of the binary
121 version, there is no realistic way to restrict which parts get
122 installed.
123 </para>
124
125 <para>
126 Because of the size of this package, it is unlikely to be mirrored by
127 BLFS mirrors. In case of difficulty, go to http://www.ctan.org/mirrors/
128 to find a more-accessible mirror.
129 </para>
130
131 <itemizedlist spacing="compact">
132 <listitem>
133 <para>
134 Download (HTTP): <ulink url="&texlive-texmf-download-http;"/>
135 </para>
136 </listitem>
137 <listitem>
138 <para>
139 Download (FTP): <ulink url="&texlive-texmf-download-ftp;"/>
140 </para>
141 </listitem>
142 <listitem>
143 <para>
144 Download MD5 sum: &texlive-texmf-md5sum;
145 </para>
146 </listitem>
147 <listitem>
148 <para>
149 Download size: &texlive-texmf-size;
150 </para>
151 </listitem>
152 </itemizedlist>
153
154 <para>
155 The tlpdb database is shipped as a separate tarball. The
156 <command>texdoc</command> program needs a cache file derived
157 from this (and will create the cache on its first run).
158 </para>
159
160 <itemizedlist spacing="compact">
161 <listitem>
162 <para>
163 Download (HTTP): <ulink url="&texlive-extra-download-http;"/>
164 </para>
165 </listitem>
166 <listitem>
167 <para>
168 Download (FTP): <ulink url="&texlive-extra-download-ftp;"/>
169 </para>
170 </listitem>
171 <listitem>
172 <para>
173 Download MD5 sum: &texlive-extra-md5sum;
174 </para>
175 </listitem>
176 <listitem>
177 <para>
178 Download size: &texlive-extra-size;
179 </para>
180 </listitem>
181
182<!-- <listitem>
183 <para>
184 Required patch: <ulink url=
185 "&patch-root;/texlive-&texlive-version;-source-security_fix-1.patch"/>
186 </para>
187 </listitem>-->
188 </itemizedlist>
189
190 <bridgehead renderas="sect3">TeX Live from source Dependencies</bridgehead>
191
192 <bridgehead renderas="sect4">Recommended</bridgehead>
193 <para role="recommended">
194 <xref linkend="x-window-system"/>
195 </para>
196
197 <!-- text for recommended libraries -->
198 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
199 href="../../xincludes/texrecommendlibs.xml"/>
200
201<!-- the following ensures jhalfs will set paths before running texlive -->
202
203 <para role="recommended">
204 Furthermore, the instructions below assume you are using the layout
205 described in <xref linkend="tex-path"/>.
206 </para>
207
208 <bridgehead renderas="sect4">Optional</bridgehead>
209 <!-- text for optional deps -->
210 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
211 href="../../xincludes/texoptional.xml"/>
212
213 <bridgehead renderas="sect4">Runtime dependencies</bridgehead>
214 <!-- text for runtime deps, shared with tl-installer -->
215 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
216 href="../../xincludes/texruntime.xml"/>
217
218 </sect2>
219
220 <sect2 role="installation">
221 <title>Installation of TeX Live</title>
222
223 <para>
224 Install TeX Live by running the following commands:
225 </para>
226
227 <caution>
228 <para>
229 If you wish to upgrade to current <application>texlive</application>
230 on an older system where extra packages (<application>asymptote</application>,
231 <application>biber</application>, <application>dvisvgm</application>, or
232 <application>xindy</application>) have been installed, you will need to
233 reinstall those as well as fixing up your <literal>PATH</literal> for
234 <literal>$TEXLIVE_PREFIX</literal>.
235 </para>
236 </caution>
237
238 <note>
239 <para>
240 A successful install requires some texlive
241 commands to be run as the root user, so we will export the TEXARCH
242 variable to let <systemitem class="username">root</systemitem> use it.
243 </para>
244 </note>
245
246 <para>
247 Now, as a normal user:
248 </para>
249
250<!-- if a patch for the source is needed, this should go between the export
251 ande configure. But keeping it there as a commented line adds too much vertical space.
252 patch -Np1 -i ../texlive-&texlive-version;-source-security_fix-1.patch &amp;&amp;-->
253<screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;
254
255mkdir texlive-build &amp;&amp;
256cd texlive-build &amp;&amp;
257
258../configure -C \
259 --prefix=$TEXLIVE_PREFIX \
260 --bindir=$TEXLIVE_PREFIX/bin/$TEXARCH \
261 --datarootdir=$TEXLIVE_PREFIX \
262 --includedir=$TEXLIVE_PREFIX/include \
263 --infodir=$TEXLIVE_PREFIX/texmf-dist/doc/info \
264 --libdir=$TEXLIVE_PREFIX/lib \
265 --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \
266 --disable-native-texlive-build \
267 --disable-static --enable-shared \
268 --disable-dvisvgm \
269 --with-system-cairo \
270 --with-system-fontconfig \
271 --with-system-freetype2 \
272 --with-system-gmp \
273 --with-system-graphite2 \
274 --with-system-harfbuzz \
275 --with-system-icu \
276 --with-system-libgs \
277 --with-system-libpaper \
278 --with-system-libpng \
279 --with-system-mpfr \
280 --with-system-pixman \
281 --with-system-zlib \
282 --with-banner-add=" - BLFS" &amp;&amp;
283
284make</userinput></screen>
285
286 <para>
287 To test the results, issue: <command>make -k check</command>.
288 <!-- https://github.com/rrthomas/libpaper/issues/43 -->
289 One test <filename>psutils.test</filename> is known to fail if
290 using system libpaper because TeX Live includes old versions of both
291 <application>psutils</application> and <application>libpaper</application>
292 which result in a difference in the final decimal places of the psresize
293 test. The <application>libpaper</application> developer does not think
294 this is significant.
295 </para>
296
297 <para>
298 Now, as the <systemitem class="username">root</systemitem> user:
299 </para>
300
301<!-- Editors, you can run 'make texlinks' in a DESTDIR by passing
302DESTDIR=some/where -->
303<screen role="root"><userinput>make install-strip &amp;&amp;
304make texlinks &amp;&amp;
305mkdir -pv $TEXLIVE_PREFIX/tlpkg/TeXLive/ &amp;&amp;
306install -v -m644 ../texk/tests/TeXLive/* $TEXLIVE_PREFIX/tlpkg/TeXLive/ &amp;&amp;
307tar -xf ../../texlive-&texlive-version;-extra.tar.xz -C $TEXLIVE_PREFIX/tlpkg --strip-components=2</userinput></screen>
308
309 <note>
310 <para>
311 Only run <command>make texlinks</command> once. If it is rerun,
312 it can change all the program symlinks so that they point to
313 themselves and are useless.
314 </para>
315 </note>
316
317 <para>
318 Now install the additional files as the
319 <systemitem class="username">root</systemitem> user:
320 </para>
321
322<!-- if texmf does not need to be patched, remove &amp;&amp; from first line,
323 close userinput, screen, comment pushd, patch, popd -->
324<screen role="root"><userinput>tar -xf ../../texlive-&texmf-version;-texmf.tar.xz -C $TEXLIVE_PREFIX --strip-components=1</userinput></screen>
325
326 <para>
327 Still as the <systemitem class="username">root</systemitem> user,
328 initialize the new system (the command <command>fmtutil-sys
329 --all</command> will produce
330 a <emphasis>lot</emphasis> of output):
331 </para>
332
333<!-- Editors, fmtutil-sys can apparently only be run on
334a real install, as root. But mktexlsr can be run in a DESTDIR with
335cd /YOUR/TEXMF/ROOT ; ls -LAR ./ >ls-R -->
336
337<screen role="root"><userinput>mktexlsr &amp;&amp;
338fmtutil-sys --all</userinput></screen>
339
340 <para>
341 To allow <xref linkend="evince"/> or <xref linkend="dvisvgm"/> to
342 link to <filename class="libraryfile">libkpathsea.so</filename>,
343 as the &root; user (re)create a symlink from
344 <filename class="directory">/usr/lib</filename>:
345 </para>
346
347<screen role="root"><userinput>ln -svf $TEXLIVE_PREFIX/lib/libkpathsea.so{,.6} /usr/lib</userinput></screen>
348
349 <note>
350 <para>
351 TeX Live does not include the source for ConTeXt, only the items that
352 are at CTAN. Trying to build ConTeXt purely from source on a BLFS
353 TeX Live system is a niche usage and looks as if it will be more trouble
354 than it is worth.
355 </para>
356
357 <para>
358 If you wish to use ConTeXt with <command>luametatex</command> (most of
359 the old MKII and MKIV code was removed from TeX Live 2023 by the ConTeXt
360 developer), starting with the binary (only installing ConTeXt) would
361 probably be the easiest way to bootstrep it. The source for
362 <command>luametatex</command> can be pulled with git from <ulink
363 url="https://github.com/contextgarden/luametatex/tags">github
364 luametatex</ulink>, compiled with meson and ninja, and installed by
365 copying to the correct program directory. This should avoid having to
366 fix all the symlinks etc and also avoid including the many unrelated
367 <!-- trying to use a filename tag here is rejected within para ?? -->
368 parts of texmf-dist.
369 See comments 1 to 5 of
370 <ulink url="&blfs-ticket-root;17823">#17823</ulink>.
371 </para>
372 </note>
373
374 <para>
375 You can now proceed to <xref linkend="asymptote"/>,
376 <xref linkend="biber"/>, <xref linkend="dvisvgm"/> and / or <xref
377 linkend="xindy"/> if you wish to install them.
378 </para>
379
380 </sect2>
381
382 <sect2 role="commands">
383 <title>Command Explanations</title>
384
385 <para>
386 <command>-C</command>: create config.cache, this saves significant
387 time in a parallel build.
388 </para>
389
390 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
391 href="../../xincludes/tex-prefix.xml"/>
392
393 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
394 href="../../xincludes/tex-lib.xml"/>
395
396 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
397 href="../../xincludes/static-libraries.xml"/>
398
399 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
400 href="../../xincludes/tex-shared.xml"/>
401
402 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
403 href="../../xincludes/tex-system.xml"/>
404<!--
405 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
406 href="../../xincludes/tex-xpdf.xml"/>-->
407
408 <para>
409 <parameter>--disable-dvisvgm</parameter>: As noted above, the shipped version
410 of dvisvgm, which has modified configuration files, cannot be built with
411 shared system libraries.
412 </para>
413
414 <para>
415 <command>make texlinks</command> : this runs the texlinks.sh script
416 to create symbolic links from formats to engines. In
417 practice, several of the targets such as <command>xetex</command> are now
418 separate binaries and for these it will report "file already exists".
419 </para>
420
421 <para>
422 <command>tar -xf texlive-&texmf-version;-texmf.tar.xz -C $TEXLIVE_PREFIX --strip-components=1</command>:
423 the tarball contains the files for the texmf-dist directory, and because
424 of its size we do not want to waste time and space untarring it and then
425 copying the files.
426 </para>
427
428 <para>
429 <command>install -v -m644 ../texk/tests/TeXLive/*
430 $TEXLIVE_PREFIX/tlpkg/TeXLive/</command>: This puts the perl
431 modules <filename>TLConfig.pm</filename> and <filename>TLUtils.pm</filename>
432 into the directory where the binary installer puts them - it is at the
433 start of the perl @INC@ PATH within texlive when installed using the above
434 configure switches. Without these modules, texlive is unusable.
435 </para>
436
437 <para>
438 <command>mktexlsr</command>: Create an <filename>ls-R</filename> file
439 which lists what was installed - this is used by kpathsea to find files.
440 </para>
441
442 <para>
443 <command>fmtutil-sys --all</command>: This initializes the TeX formats,
444 Metafont bases and Metapost mems.
445 </para>
446
447 <para>
448 <option>--without-x</option>: use this if you do not have Xorg installed.
449 </para>
450
451 <para>
452 There are many other '--disable' or '--without' options. Some of them such
453 as <option>--without-texinfo</option> are accepted but no longer do anything,
454 others will prevent a program being built - but the far greater amount of
455 space used for the related items in texmf means there is no obvious benefit
456 from disabling a few of the programs.
457 </para>
458
459 </sect2>
460
461 <sect2 role="content">
462 <title>Contents</title>
463
464 <segmentedlist>
465 <segtitle>Installed Programs</segtitle>
466 <segtitle>Installed Libraries</segtitle>
467 <segtitle>Installed Directories</segtitle>
468
469 <seglistitem>
470 <seg>Over 300 binaries and symlinks to scripts</seg>
471 <seg>libkpathsea.so,
472 libptexenc.so,
473 libsynctex.so,
474 libtexlua52.so,
475 libtexluajit.so
476 </seg>
477 <seg>$TEXLIVE_PREFIX/bin,
478 $TEXLIVE_PREFIX/include,
479 $TEXLIVE_PREFIX/lib,
480 $TEXLIVE_PREFIX/texmf-dist
481 </seg>
482 </seglistitem>
483 </segmentedlist>
484
485 <variablelist>
486 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
487 <?dbfo list-presentation="list"?>
488 <?dbhtml list-presentation="table"?>
489
490 <varlistentry id="texlive-programs">
491 <term><command>TeX&nbsp;programs</command></term>
492 <listitem>
493 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
494 href="../../xincludes/texprogs.xml"/>
495 <indexterm zone="texlive texlive-programs">
496 <primary sortas="b-texlive-programs">TeX Live programs</primary>
497 </indexterm>
498 </listitem>
499 </varlistentry>
500
501 <varlistentry id="libkpathsea">
502 <term><filename class="libraryfile">libkpathsea.so</filename></term>
503 <listitem>
504 <para>
505 (kpathsearch) exists to look up a file in a list of directories
506 and is used by <command>kpsewhich</command>
507 </para>
508 <indexterm zone="texlive libkpathsea">
509 <primary sortas="c-libkpathsea">libkpathsea.so</primary>
510 </indexterm>
511 </listitem>
512 </varlistentry>
513
514 <varlistentry id="libptexenc">
515 <term><filename class="libraryfile">libptexenc.so</filename></term>
516 <listitem>
517 <para>
518 is a library for Japanese pTeX (publishing TeX)
519 </para>
520 <indexterm zone="texlive libptexenc">
521 <primary sortas="c-libptexenc">libptexenc.so</primary>
522 </indexterm>
523 </listitem>
524 </varlistentry>
525
526 <varlistentry id="libsynctex">
527 <term><filename class="libraryfile">libsynctex.so</filename></term>
528 <listitem>
529 <para>
530 is the SyncTeX (Synchronize TeXnology) parser library
531 </para>
532 <indexterm zone="texlive libsynctex">
533 <primary sortas="c-libsynctex">libsynctex.so</primary>
534 </indexterm>
535 </listitem>
536 </varlistentry>
537
538 <varlistentry id="libtexlua52">
539 <term><filename class="libraryfile">libtexlua52.so</filename></term>
540 <listitem>
541 <para>
542 provides Lua 5.2, modified for use with LuaTeX
543 </para>
544 <indexterm zone="texlive libtexlua52">
545 <primary sortas="c-libtexlua52">libtexlua52.so</primary>
546 </indexterm>
547 </listitem>
548 </varlistentry>
549
550 <varlistentry id="libtexluajit">
551 <term><filename class="libraryfile">libtexluajit.so</filename></term>
552 <listitem>
553 <para>
554 provides LuaJIT, modified for use with LuaJITTeX
555 </para>
556 <indexterm zone="texlive libtexluajit">
557 <primary sortas="c-libtexluajit">libtexluajit.so</primary>
558 </indexterm>
559 </listitem>
560 </varlistentry>
561 </variablelist>
562
563 </sect2>
564
565</sect1>
Note: See TracBrowser for help on using the repository browser.