source: pst/typesetting/texlive.xml@ 50745626

lazarus trunk
Last change on this file since 50745626 was e1b72e2, checked in by Ken Moffat <zarniwhoop@…>, 4 months ago

texlive - add note for editors re future size changes.

This was committed yesterday. As has been commented on the
tex-live list, this symplifies the scripts (no special casing
of windows), but loses some information from a directory
listing of the programs.

  • Property mode set to 100644
File size: 21.1 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 <application>biber</application>, <application>dvisvgm</application>, or
251 <application>xindy</application>) have been installed, you will need to
252 reinstall those as well as fixing up your <literal>PATH</literal> for
253 <literal>$TEXLIVE_PREFIX</literal>.
254 </para>
255 </caution>
256
257 <note>
258 <para>
259 A successful install requires some texlive
260 commands to be run as the root user, so we will export the TEXARCH
261 variable to let <systemitem class="username">root</systemitem> use it.
262 </para>
263 </note>
264
265 <para>
266 Now, as a normal user:
267 </para>
268
269<!-- if a patch for the source is needed, this should go between the export
270 ande configure. But keeping it there as a commented line adds too much vertical space.
271 patch -Np1 -i ../texlive-&texlive-version;-source-security_fix-1.patch &amp;&amp;-->
272<screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;
273
274mkdir texlive-build &amp;&amp;
275cd texlive-build &amp;&amp;
276
277../configure -C \
278 --prefix=$TEXLIVE_PREFIX \
279 --bindir=$TEXLIVE_PREFIX/bin/$TEXARCH \
280 --datarootdir=$TEXLIVE_PREFIX \
281 --includedir=$TEXLIVE_PREFIX/include \
282 --infodir=$TEXLIVE_PREFIX/texmf-dist/doc/info \
283 --libdir=$TEXLIVE_PREFIX/lib \
284 --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \
285 --disable-native-texlive-build \
286 --disable-static --enable-shared \
287 --disable-dvisvgm \
288 --with-system-cairo \
289 --with-system-fontconfig \
290 --with-system-freetype2 \
291 --with-system-gmp \
292 --with-system-graphite2 \
293 --with-system-harfbuzz \
294 --with-system-icu \
295 --with-system-libgs \
296 --with-system-libpaper \
297 --with-system-libpng \
298 --with-system-mpfr \
299 --with-system-pixman \
300 --with-system-zlib \
301 --with-banner-add=" - BLFS" &amp;&amp;
302
303make</userinput></screen>
304
305 <para>
306 To test the results, issue: <command>make -k check</command>.
307 <!-- https://github.com/rrthomas/libpaper/issues/43 -->
308 One test <filename>psutils.test</filename> is known to fail if
309 using system libpaper because TeX Live includes old versions of both
310 <application>psutils</application> and <application>libpaper</application>
311 which result in a difference in the final decimal places of the psresize
312 test. The <application>libpaper</application> developer does not think
313 this is significant.
314 </para>
315
316 <para>
317 Now, as the <systemitem class="username">root</systemitem> user:
318 </para>
319
320<!-- Editors, you can run 'make texlinks' in a DESTDIR by passing
321DESTDIR=some/where -->
322<screen role="root"><userinput>make install-strip &amp;&amp;
323make texlinks &amp;&amp;
324mkdir -pv $TEXLIVE_PREFIX/tlpkg/TeXLive/ &amp;&amp;
325install -v -m644 ../texk/tests/TeXLive/* $TEXLIVE_PREFIX/tlpkg/TeXLive/ &amp;&amp;
326tar -xf ../../texlive-&texlive-version;-extra.tar.xz -C $TEXLIVE_PREFIX/tlpkg --strip-components=2</userinput></screen>
327
328 <note>
329 <para>
330 Only run <command>make texlinks</command> once. If it is rerun,
331 it can change all the program symlinks so that they point to
332 themselves and are useless.
333 </para>
334 </note>
335
336 <para>
337 Now install the additional files as the
338 <systemitem class="username">root</systemitem> user:
339 </para>
340
341<!-- if texmf does not need to be patched, remove &amp;&amp; from first line,
342 close userinput, screen, comment pushd, patch, popd -->
343<screen role="root"><userinput>tar -xf ../../texlive-&texmf-version;-texmf.tar.xz -C $TEXLIVE_PREFIX --strip-components=1</userinput></screen>
344
345 <para>
346 Still as the <systemitem class="username">root</systemitem> user,
347 initialize the new system (the command <command>fmtutil-sys
348 --all</command> will produce
349 a <emphasis>lot</emphasis> of output):
350 </para>
351
352<!-- Editors, fmtutil-sys can apparently only be run on
353a real install, as root. But mktexlsr can be run in a DESTDIR with
354cd /YOUR/TEXMF/ROOT ; ls -LAR ./ >ls-R -->
355
356<screen role="root"><userinput>mktexlsr &amp;&amp;
357fmtutil-sys --all</userinput></screen>
358
359 <para>
360 To allow <xref linkend="evince"/> or <xref linkend="dvisvgm"/> to
361 link to <filename class="libraryfile">libkpathsea.so</filename>,
362 as the &root; user (re)create a symlink from
363 <filename class="directory">/usr/lib</filename>:
364 </para>
365
366<screen role="root"><userinput>ln -svf $TEXLIVE_PREFIX/lib/libkpathsea.so{,.6} /usr/lib</userinput></screen>
367
368 <note>
369 <para>
370 TeX Live does not include the source for ConTeXt, only the items that
371 are at CTAN. Trying to build ConTeXt purely from source on a BLFS
372 TeX Live system is a niche usage and looks as if it will be more trouble
373 than it is worth.
374 </para>
375
376 <para>
377 If you wish to use ConTeXt with <command>luametatex</command> (most of
378 the old MKII and MKIV code was removed from TeX Live 2023 by the ConTeXt
379 developer), starting with the binary (only installing ConTeXt, 753 MB in
380 March 2024) would probably be the easiest way to bootstrap it. The source
381 for <command>luametatex</command> can be pulled with git from <ulink
382 url="https://github.com/contextgarden/luametatex/tags">github
383 luametatex</ulink>, compiled with meson and ninja, and installed by
384 copying to the correct program directory. This should avoid having to
385 fix all the symlinks etc and also avoid including the many unrelated
386 <!-- trying to use a filename tag here is rejected within para ?? -->
387 parts of texmf-dist.
388 See comments 1 to 5 of
389 <ulink url="&blfs-ticket-root;17823">#17823</ulink>.
390 </para>
391 </note>
392
393 <para>
394 You can now proceed to <xref linkend="asymptote"/>,
395 <xref linkend="biber"/>, <xref linkend="dvisvgm"/> and / or <xref
396 linkend="xindy"/> if you wish to install them.
397 </para>
398
399 </sect2>
400
401 <sect2 role="commands">
402 <title>Command Explanations</title>
403
404 <para>
405 <command>-C</command>: create config.cache, this saves significant
406 time in a parallel build.
407 </para>
408
409 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
410 href="../../xincludes/tex-prefix.xml"/>
411
412 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
413 href="../../xincludes/tex-lib.xml"/>
414
415 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
416 href="../../xincludes/static-libraries.xml"/>
417
418 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
419 href="../../xincludes/tex-shared.xml"/>
420
421 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
422 href="../../xincludes/tex-system.xml"/>
423<!--
424 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
425 href="../../xincludes/tex-xpdf.xml"/>-->
426
427 <para>
428 <parameter>--disable-dvisvgm</parameter>: As noted above, the shipped version
429 of dvisvgm, which has modified configuration files, cannot be built with
430 shared system libraries.
431 </para>
432
433 <para>
434 <command>make texlinks</command> : this runs the texlinks.sh script
435 to create symbolic links from formats to engines. In
436 practice, several of the targets such as <command>xetex</command> are now
437 separate binaries and for these it will report "file already exists".
438 </para>
439
440 <para>
441 <command>tar -xf texlive-&texmf-version;-texmf.tar.xz -C $TEXLIVE_PREFIX --strip-components=1</command>:
442 the tarball contains the files for the texmf-dist directory, and because
443 of its size we do not want to waste time and space untarring it and then
444 copying the files.
445 </para>
446
447 <para>
448 <command>install -v -m644 ../texk/tests/TeXLive/*
449 $TEXLIVE_PREFIX/tlpkg/TeXLive/</command>: This puts the perl
450 modules <filename>TLConfig.pm</filename> and <filename>TLUtils.pm</filename>
451 into the directory where the binary installer puts them - it is at the
452 start of the perl @INC@ PATH within texlive when installed using the above
453 configure switches. Without these modules, texlive is unusable.
454 </para>
455
456 <para>
457 <command>mktexlsr</command>: Create an <filename>ls-R</filename> file
458 which lists what was installed - this is used by kpathsea to find files.
459 </para>
460
461 <para>
462 <command>fmtutil-sys --all</command>: This initializes the TeX formats,
463 Metafont bases and Metapost mems.
464 </para>
465
466 <para>
467 <option>--without-x</option>: use this if you do not have Xorg installed.
468 </para>
469
470 <para>
471 There are many other '--disable' or '--without' options. Some of them such
472 as <option>--without-texinfo</option> are accepted but no longer do anything,
473 others will prevent a program being built - but the far greater amount of
474 space used for the related items in texmf means there is no obvious benefit
475 from disabling a few of the programs.
476 </para>
477
478 </sect2>
479
480 <sect2 role="content">
481 <title>Contents</title>
482
483 <segmentedlist>
484 <segtitle>Installed Programs</segtitle>
485 <segtitle>Installed Libraries</segtitle>
486 <segtitle>Installed Directories</segtitle>
487
488 <seglistitem>
489 <seg>Over 300 binaries and symlinks to scripts</seg>
490 <seg>libkpathsea.so,
491 libptexenc.so,
492 libsynctex.so,
493 libtexlua52.so,
494 libtexluajit.so
495 </seg>
496 <seg>$TEXLIVE_PREFIX/bin,
497 $TEXLIVE_PREFIX/include,
498 $TEXLIVE_PREFIX/lib,
499 $TEXLIVE_PREFIX/texmf-dist
500 </seg>
501 </seglistitem>
502 </segmentedlist>
503
504 <variablelist>
505 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
506 <?dbfo list-presentation="list"?>
507 <?dbhtml list-presentation="table"?>
508
509 <varlistentry id="texlive-programs">
510 <term><command>TeX&nbsp;programs</command></term>
511 <listitem>
512 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
513 href="../../xincludes/texprogs.xml"/>
514 <indexterm zone="texlive texlive-programs">
515 <primary sortas="b-texlive-programs">TeX Live programs</primary>
516 </indexterm>
517 </listitem>
518 </varlistentry>
519
520 <varlistentry id="libkpathsea">
521 <term><filename class="libraryfile">libkpathsea.so</filename></term>
522 <listitem>
523 <para>
524 (kpathsearch) exists to look up a file in a list of directories
525 and is used by <command>kpsewhich</command>
526 </para>
527 <indexterm zone="texlive libkpathsea">
528 <primary sortas="c-libkpathsea">libkpathsea.so</primary>
529 </indexterm>
530 </listitem>
531 </varlistentry>
532
533 <varlistentry id="libptexenc">
534 <term><filename class="libraryfile">libptexenc.so</filename></term>
535 <listitem>
536 <para>
537 is a library for Japanese pTeX (publishing TeX)
538 </para>
539 <indexterm zone="texlive libptexenc">
540 <primary sortas="c-libptexenc">libptexenc.so</primary>
541 </indexterm>
542 </listitem>
543 </varlistentry>
544
545 <varlistentry id="libsynctex">
546 <term><filename class="libraryfile">libsynctex.so</filename></term>
547 <listitem>
548 <para>
549 is the SyncTeX (Synchronize TeXnology) parser library
550 </para>
551 <indexterm zone="texlive libsynctex">
552 <primary sortas="c-libsynctex">libsynctex.so</primary>
553 </indexterm>
554 </listitem>
555 </varlistentry>
556
557 <varlistentry id="libtexlua52">
558 <term><filename class="libraryfile">libtexlua52.so</filename></term>
559 <listitem>
560 <para>
561 provides Lua 5.2, modified for use with LuaTeX
562 </para>
563 <indexterm zone="texlive libtexlua52">
564 <primary sortas="c-libtexlua52">libtexlua52.so</primary>
565 </indexterm>
566 </listitem>
567 </varlistentry>
568
569 <varlistentry id="libtexluajit">
570 <term><filename class="libraryfile">libtexluajit.so</filename></term>
571 <listitem>
572 <para>
573 provides LuaJIT, modified for use with LuaJITTeX
574 </para>
575 <indexterm zone="texlive libtexluajit">
576 <primary sortas="c-libtexluajit">libtexluajit.so</primary>
577 </indexterm>
578 </listitem>
579 </varlistentry>
580 </variablelist>
581
582 </sect2>
583
584</sect1>
Note: See TracBrowser for help on using the repository browser.