source: pst/typesetting/texlive.xml@ 51e9d68c

12.0 12.1 12.2 gimp3 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 51e9d68c was f5c9139, checked in by Ken Moffat <ken@…>, 17 months ago

texlive: remove unnecessary 'mtxrun --generate'.

  • Property mode set to 100644
File size: 21.9 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 "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&texlive-version;-source.tar.xz">
9 <!ENTITY texlive-md5sum "bec84c5d6e340967783302f432c78efe">
10 <!ENTITY texlive-size "66 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 "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&texmf-version;-texmf.tar.xz">
18 <!ENTITY texlive-texmf-md5sum "704fb39c69e3710b8e9e9158cec5047a">
19 <!ENTITY texlive-texmf-size "3.7 GB">
20
21 <!ENTITY texlive-tlpdb-download-http "https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/&texlive-year;/texlive-&tex-tlpdb-version;-tlpdb-full.tar.gz">
22 <!ENTITY texlive-tlpdb-download-ftp "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&tex-tlpdb-version;-tlpdb-full.tar.gz">
23 <!ENTITY texlive-tlpdb-md5sum "5078a7ddaa7b309b7392e33916b817f7">
24 <!ENTITY texlive-tlpdb-size "3.2 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 Chemntiz 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 &lfs113_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 From the 2019 year, the tlpdb database of the packages within texlive is
156 no-longer installed with the source. But <command>texdoc</command> needs
157 a cache file derived from this (and will create the cache on its first
158 run).
159 </para>
160
161 <itemizedlist spacing="compact">
162 <listitem>
163 <para>
164 Download (HTTP): <ulink url="&texlive-tlpdb-download-http;"/>
165 </para>
166 </listitem>
167 <listitem>
168 <para>
169 Download (FTP): <ulink url="&texlive-tlpdb-download-ftp;"/>
170 </para>
171 </listitem>
172 <listitem>
173 <para>
174 Download MD5 sum: &texlive-tlpdb-md5sum;
175 </para>
176 </listitem>
177 <listitem>
178 <para>
179 Download size: &texlive-tlpdb-size;
180 </para>
181 </listitem>
182
183<!-- <listitem>
184 <para>
185 Required patch: <ulink url=
186 "&patch-root;/texlive-&texlive-version;-upstream_fixes-1.patch"/>
187 </para>
188 </listitem>-->
189 </itemizedlist>
190
191 <bridgehead renderas="sect3">TeX Live from source Dependencies</bridgehead>
192
193 <bridgehead renderas="sect4">Recommended</bridgehead>
194 <para role="recommended">
195 <xref linkend="x-window-system"/>
196 </para>
197
198 <!-- text for recommended libraries -->
199 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
200 href="../../xincludes/texrecommendlibs.xml"/>
201
202<!-- the following ensures jhalfs will set paths before running texlive -->
203
204 <para role="recommended">
205 Furthermore, the instructions below assume you are using the layout
206 described in <xref linkend="tex-path"/>.
207 </para>
208
209 <bridgehead renderas="sect4">Optional</bridgehead>
210 <!-- text for optional deps -->
211 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
212 href="../../xincludes/texoptional.xml"/>
213
214 <bridgehead renderas="sect4">Runtime dependencies</bridgehead>
215 <!-- text for runtime deps, shared with tl-installer -->
216 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
217 href="../../xincludes/texruntime.xml"/>
218
219 <para condition="html" role="usernotes">User Notes:
220 <ulink url="&blfs-wiki;/texlive"/></para>
221
222 </sect2>
223
224 <sect2 role="installation">
225 <title>Installation of TeX Live</title>
226
227 <para>
228 Install TeX Live by running the following commands:
229 </para>
230
231 <caution>
232 <para>
233 If you wish to upgrade to current <application>texlive</application>
234 on an older system where extra packages (<application>asymptote</application>,
235 <application>biber</application>, <application>dvisvgm</application>, or
236 <application>xindy</application>) have been installed, you will need to
237 reinstall those as well as fixing up your <literal>PATH</literal> for
238 <literal>$TEXLIVE_PREFIX</literal>.
239 </para>
240 </caution>
241
242 <note>
243 <para>
244 A successful install requires some texlive
245 commands to be run as the root user, so we will export the TEXARCH
246 variable to let <systemitem class="username">root</systemitem> use it.
247 </para>
248 </note>
249
250 <para>
251 Now, as a normal user:
252 </para>
253
254<screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;
255
256mkdir texlive-build &amp;&amp;
257cd texlive-build &amp;&amp;
258
259../configure \
260 --prefix=$TEXLIVE_PREFIX \
261 --bindir=$TEXLIVE_PREFIX/bin/$TEXARCH \
262 --datarootdir=$TEXLIVE_PREFIX \
263 --includedir=$TEXLIVE_PREFIX/include \
264 --infodir=$TEXLIVE_PREFIX/texmf-dist/doc/info \
265 --libdir=$TEXLIVE_PREFIX/lib \
266 --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \
267 --disable-native-texlive-build \
268 --disable-static --enable-shared \
269 --disable-dvisvgm \
270 --with-system-cairo \
271 --with-system-fontconfig \
272 --with-system-freetype2 \
273 --with-system-gmp \
274 --with-system-graphite2 \
275 --with-system-harfbuzz \
276 --with-system-icu \
277 --with-system-libgs \
278 --with-system-libpaper \
279 --with-system-libpng \
280 --with-system-mpfr \
281 --with-system-pixman \
282 --with-system-zlib \
283 --with-banner-add=" - BLFS" &amp;&amp;
284
285make</userinput></screen>
286
287 <para>
288 To test the results, issue: <command>make -k check</command>.
289 <!-- It started to fail with libpaper-2.0.10 which rounds differently
290 in the 6th place of decimals, causing diff to fail -->
291 Two tests, <filename>psutils.test</filename> and
292 <!-- Upstream say that encoding conversion procedure Encode::from_to()
293 failed in fn-generate.perl, test now skips if that errors: possibly
294 related to changes in perl-5.36 since I understand current slackware
295 also sees this - ken -->
296 <filename>eptexdir/wcfname</filename> are known to fail.
297 </para>
298
299 <para>
300 Now, as the <systemitem class="username">root</systemitem> user:
301 </para>
302
303<!-- Editors, you can run 'make texlinks' in a DESTDIR by passing
304DESTDIR#some/where -->
305<screen role="root"><userinput>make install-strip &amp;&amp;
306/sbin/ldconfig &amp;&amp;
307make texlinks &amp;&amp;
308mkdir -pv $TEXLIVE_PREFIX/tlpkg/TeXLive/ &amp;&amp;
309install -v -m644 ../texk/tests/TeXLive/* $TEXLIVE_PREFIX/tlpkg/TeXLive/ &amp;&amp;
310tar -xf ../../texlive-&tex-tlpdb-version;-tlpdb-full.tar.gz -C $TEXLIVE_PREFIX/tlpkg</userinput></screen>
311
312 <note>
313 <para>
314 Only run <command>make texlinks</command> once. If it is rerun,
315 it can change all the program symlinks so that they point to
316 themselves and are useless.
317 </para>
318 </note>
319
320 <para>
321 Now install the additional files as the
322 <systemitem class="username">root</systemitem> user:
323 </para>
324
325<!-- if texmf does not need to be patched, remove &amp;&amp; from first line,
326 close userinput, screen, comment pushd, patch, popd -->
327<screen role="root"><userinput>tar -xf ../../texlive-&texmf-version;-texmf.tar.xz -C $TEXLIVE_PREFIX --strip-components=1</userinput></screen>
328
329 <para>
330 It has been established by debian that the <command>python</command>
331 scripts in <filename class="directory">l\atex-make</filename> will work
332 with <command>python3</command>, so update them to invoke that by running
333 the following command as the <systemitem class="username">root</systemitem>
334 user:
335 </para>
336
337<screen role="root"><userinput>for F in $TEXLIVE_PREFIX/texmf-dist/scripts/latex-make/*.py ; do
338 sed -i 's%/usr/bin/env python%/usr/bin/python3%' $F
339done
340</userinput></screen>
341
342 <para>
343 Still as the <systemitem class="username">root</systemitem> user,
344 initialize the new system (the command <command>fmtutil-sys
345 --all</command> will produce
346 a <emphasis>lot</emphasis> of output):
347 </para>
348
349<!-- Editors, fmtutil-sys can apparently only be run on
350a real install, as root. But mktexlsr can be run in a DESTDIR with
351cd /YOUR/TEXMF/ROOT ; ls -LAR ./ >ls-R -->
352
353<screen role="root"><userinput>mktexlsr &amp;&amp;
354fmtutil-sys --all</userinput></screen>
355
356 <para>
357 To enable an existing install of <xref linkend="evince"/> to now
358 link to this new version of
359 <filename class="libraryfile">libkpathsea.so</filename> and to
360 allow a new <xref linkend="dvisvgm"/> to link to it, as the
361 <systemitem class="username">root</systemitem> user (re)create a
362 symlink from <filename class="directory">/usr/lib</filename>:
363 </para>
364
365<screen role="root"><userinput>ln -svf $TEXLIVE_PREFIX/lib/libkpathsea.so /usr/lib</userinput></screen>
366
367 <note>
368 <!-- following based on fedora, but amended to run in the BLFS
369 layout, where adapting fedora's script for mtxrun did not
370 reliably work. ken -->
371 <para>
372 TeXLive includes some files for ConTeXt but the source of that is
373 separate and has moved on from using luatex in the previous 'mkiv'
374 version to using luametatex which can be pulled with git from
375 <ulink url="href=https://github.com/contextgarden/luametatex/releases/tags/"/>.
376 Luametatex uses meson and ninja, but it does not fit easily into
377 the BLFS layout of TeXLive.
378 </para>
379 <para>
380 However, with a little extra work 'mkiv' files can still be processed
381 using the files shipped in texmf.
382 </para>
383 </note>
384
385 <para>
386 The following steps, run as the
387 <systemitem class="username">root</systemitem> user, will create
388 <command>mtxrun</command> and <command>context</command>.
389 </para>
390
391<!-- I've put blank lines in this to make it a little less hard to read. ken -->
392<screen role="root"><userinput>mkdir -pv $TEXLIVE_PREFIX/texmf-var/luatex-cache/context/ &amp;&amp;
393
394ln -sfv /$TEXLIVE_PREFIX/texmf-dist/scripts/context/lua/mtxrun.lua \
395 /$TEXLIVE_PREFIX/bin/$TEXARCH/mtxrun &amp;&amp;
396
397cat > $TEXLIVE_PREFIX/bin/$TEXARCH/context &lt;&lt; EOF
398#!/bin/sh
399export TEXMF=$TEXLIVE_PREFIX/texmf-dist;
400export TEXMFCNF=$TEXLIVE_PREFIX/texmf-dist/web2c;
401export TEXMFCACHE=$TEXLIVE_PREFIX/texmf-var/luatex-cache/context/;
402$TEXLIVE_PREFIX/bin/$TEXARCH/mtxrun --script context "\$@"
403EOF
404chmod -v 0755 $TEXLIVE_PREFIX/bin/$TEXARCH/context</userinput></screen>
405
406 <para>
407 You can now proceed to <xref linkend="asymptote"/>,
408 <xref linkend="biber"/>, <xref linkend="dvisvgm"/> and / or <xref
409 linkend="xindy"/> if you wish to install them.
410 </para>
411
412 </sect2>
413
414 <sect2 role="commands">
415 <title>Command Explanations</title>
416
417 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
418 href="../../xincludes/tex-prefix.xml"/>
419
420 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
421 href="../../xincludes/tex-lib.xml"/>
422
423 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
424 href="../../xincludes/static-libraries.xml"/>
425
426 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
427 href="../../xincludes/tex-shared.xml"/>
428
429 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
430 href="../../xincludes/tex-system.xml"/>
431<!--
432 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
433 href="../../xincludes/tex-xpdf.xml"/>-->
434
435 <para>
436 <command>--disable-dvisvgm</command>: As noted above, the shipped version
437 of dvisvgm, which has modified configuration files, cannot be built with
438 shared system libraries.
439 </para>
440
441 <para>
442 <command>/sbin/ldconfig</command>: this has to be run here so that
443 <command>make texlinks</command> can use kpsewhich.
444 </para>
445
446 <para>
447 <command>make texlinks</command> : this runs the texlinks.sh script
448 to create symbolic links from formats to engines. In
449 practice, several of the targets such as <command>xetex</command> are now
450 separate binaries and for these it will report "file already exists".
451 </para>
452
453 <para>
454 <command>tar -xf texlive-&texmf-version;-texmf.tar.xz -C $TEXLIVE_PREFIX --strip-components=1</command>:
455 the tarball contains the files for the texmf-dist directory, and because
456 of its size we do not want to waste time and space untarring it and then
457 copying the files.
458 </para>
459
460 <para>
461 <command>install -v -m644 ../texk/tests/TeXLive/*
462 $TEXLIVE_PREFIX/tlpkg/TeXLive/</command>: This puts the perl
463 modules <filename>TLConfig.pm</filename> and <filename>TLUtils.pm</filename>
464 into the directory where the binary installer puts them - it is at the
465 start of the perl @INC@ PATH within texlive when installed using the above
466 configure switches. Without these modules, texlive is unusable.
467 </para>
468
469 <para>
470 <command>mktexlsr</command>: Create an <filename>ls-R</filename> file
471 which lists what was installed - this is used by kpathsea to find files.
472 </para>
473
474 <para>
475 <command>fmtutil-sys --all</command>: This initializes the TeX formats,
476 Metafont bases and Metapost mems.
477 </para>
478
479 <para>
480 <command>mkdir -pv $TEXLIVE_PREFIX/texmf-var/luatex-cache/context/</command>:
481 the context script created after this will not run correctly if this
482 directory is not present.
483 </para>
484
485 <para>
486 <option>--without-x</option>: use this if you do not have Xorg installed.
487 </para>
488
489 <para>
490 There are many other '--disable' or '--without' options. Some of them such
491 as <option>--without-texinfo</option> are accepted but no longer do anything,
492 others will prevent a program being built - but the far greater amount of
493 space used for the related items in texmf means there is no obvious benefit
494 from disabling a few of the programs.
495 </para>
496
497 </sect2>
498
499 <sect2 role="content">
500 <title>Contents</title>
501
502 <segmentedlist>
503 <segtitle>Installed Programs</segtitle>
504 <segtitle>Installed Libraries</segtitle>
505 <segtitle>Installed Directories</segtitle>
506
507 <seglistitem>
508 <seg>Over 300 binaries and symlinks to scripts</seg>
509 <seg>libkpathsea.so,
510 libptexenc.so,
511 libsynctex.so,
512 libtexlua52.so,
513 libtexluajit.so
514 </seg>
515 <seg>$TEXLIVE_PREFIX/bin,
516 $TEXLIVE_PREFIX/include,
517 $TEXLIVE_PREFIX/lib,
518 $TEXLIVE_PREFIX/texmf-dist
519 </seg>
520 </seglistitem>
521 </segmentedlist>
522
523 <variablelist>
524 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
525 <?dbfo list-presentation="list"?>
526 <?dbhtml list-presentation="table"?>
527
528 <varlistentry id="texlive-programs">
529 <term><command>TeX&nbsp;programs</command></term>
530 <listitem>
531 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
532 href="../../xincludes/texprogs.xml"/>
533 <indexterm zone="texlive texlive-programs">
534 <primary sortas="b-texlive-programs">TeX Live programs</primary>
535 </indexterm>
536 </listitem>
537 </varlistentry>
538
539 <varlistentry id="libkpathsea">
540 <term><filename class="libraryfile">libkpathsea.so</filename></term>
541 <listitem>
542 <para>
543 (kpathsearch) exists to look up a file in a list of directories
544 and is used by <command>kpsewhich</command>
545 </para>
546 <indexterm zone="texlive libkpathsea">
547 <primary sortas="c-libkpathsea">libkpathsea.so</primary>
548 </indexterm>
549 </listitem>
550 </varlistentry>
551
552 <varlistentry id="libptexenc">
553 <term><filename class="libraryfile">libptexenc.so</filename></term>
554 <listitem>
555 <para>
556 is a library for Japanese pTeX (publishing TeX)
557 </para>
558 <indexterm zone="texlive libptexenc">
559 <primary sortas="c-libptexenc">libptexenc.so</primary>
560 </indexterm>
561 </listitem>
562 </varlistentry>
563
564 <varlistentry id="libsynctex">
565 <term><filename class="libraryfile">libsynctex.so</filename></term>
566 <listitem>
567 <para>
568 is the SyncTeX (Synchronize TeXnology) parser library
569 </para>
570 <indexterm zone="texlive libsynctex">
571 <primary sortas="c-libsynctex">libsynctex.so</primary>
572 </indexterm>
573 </listitem>
574 </varlistentry>
575
576 <varlistentry id="libtexlua52">
577 <term><filename class="libraryfile">libtexlua52.so</filename></term>
578 <listitem>
579 <para>
580 provides Lua 5.2, modified for use with LuaTeX
581 </para>
582 <indexterm zone="texlive libtexlua52">
583 <primary sortas="c-libtexlua52">libtexlua52.so</primary>
584 </indexterm>
585 </listitem>
586 </varlistentry>
587
588 <varlistentry id="libtexluajit">
589 <term><filename class="libraryfile">libtexluajit.so</filename></term>
590 <listitem>
591 <para>
592 provides LuaJIT, modified for use with LuaJITTeX
593 </para>
594 <indexterm zone="texlive libtexluajit">
595 <primary sortas="c-libtexluajit">libtexluajit.so</primary>
596 </indexterm>
597 </listitem>
598 </varlistentry>
599 </variablelist>
600
601 </sect2>
602
603</sect1>
Note: See TracBrowser for help on using the repository browser.