source: pst/typesetting/texlive.xml@ 73089ed3

lazarus trunk
Last change on this file since 73089ed3 was 73089ed3, checked in by Ken Moffat <zarniwhoop@…>, 2 months ago

texlive - remove double dashes in comment.

Fixes e1b72e2b28080147a5c8292eab2b415350179209

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