source: pst/typesetting/texlive.xml@ f65def9

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since f65def9 was 2fa5250, checked in by Xi Ruoyao <xry111@…>, 14 months ago

texlive: Document a test failure with libpaper-2.0.10

  • Property mode set to 100644
File size: 19.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 "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&texlive-version;-source.tar.xz">
9 <!ENTITY texlive-md5sum "4f05bbd93004175275f50215a4c51608">
10 <!ENTITY texlive-size "65 MB">
11
12 <!ENTITY texlive-buildsize "8.0 GB including the additional download and the tests, 7.3 GB installed">
13 <!ENTITY texlive-time "3.9 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 "9806803f703b6ce4d9845c46806a7a08">
19 <!ENTITY texlive-texmf-size "3.4 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 "1084c37c6775b567ed7babd71e612f75">
24 <!ENTITY texlive-tlpdb-size "3.1 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 <para>
243 The shared libraries will be installed into a texlive directory.
244 As the <systemitem class="username">root</systemitem> user, add it to
245 your <filename>/etc/ld.so.conf</filename>:
246 </para>
247
248<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; EOF
249<literal># Begin texlive addition
250
251$TEXLIVE_PREFIX/lib
252
253# End texlive addition</literal>
254EOF</userinput></screen>
255
256 <note>
257 <para>
258 A successful install requires some texlive
259 commands to be run as the root user, so we will export the TEXARCH
260 variable to let <systemitem class="username">root</systemitem> use it.
261 </para>
262 </note>
263
264 <para>
265 Now, as a normal user:
266 </para>
267
268<screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;
269
270mkdir texlive-build &amp;&amp;
271cd texlive-build &amp;&amp;
272
273../configure \
274 --prefix=$TEXLIVE_PREFIX \
275 --bindir=$TEXLIVE_PREFIX/bin/$TEXARCH \
276 --datarootdir=$TEXLIVE_PREFIX \
277 --includedir=$TEXLIVE_PREFIX/include \
278 --infodir=$TEXLIVE_PREFIX/texmf-dist/doc/info \
279 --libdir=$TEXLIVE_PREFIX/lib \
280 --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \
281 --disable-native-texlive-build \
282 --disable-static --enable-shared \
283 --disable-dvisvgm \
284 --with-system-cairo \
285 --with-system-fontconfig \
286 --with-system-freetype2 \
287 --with-system-gmp \
288 --with-system-graphite2 \
289 --with-system-harfbuzz \
290 --with-system-icu \
291 --with-system-libgs \
292 --with-system-libpaper \
293 --with-system-libpng \
294 --with-system-mpfr \
295 --with-system-pixman \
296 --with-system-zlib \
297 --with-banner-add=" - BLFS" &amp;&amp;
298
299make</userinput></screen>
300
301 <para>
302 To test the results, issue: <command>make check</command>.
303 <!-- It started to fail with libpaper-2.0.10. -->
304 One test named <filename>psutils.test</filename> is known to fail.
305 </para>
306
307 <para>
308 Now, as the <systemitem class="username">root</systemitem> user:
309 </para>
310
311<!-- Editors, you can run 'make texlinks' in a DESTDIR by passing
312DESTDIR#some/where -->
313<screen role="root"><userinput>make install-strip &amp;&amp;
314/sbin/ldconfig &amp;&amp;
315make texlinks &amp;&amp;
316mkdir -pv $TEXLIVE_PREFIX/tlpkg/TeXLive/ &amp;&amp;
317install -v -m644 ../texk/tests/TeXLive/* $TEXLIVE_PREFIX/tlpkg/TeXLive/ &amp;&amp;
318tar -xf ../../texlive-&tex-tlpdb-version;-tlpdb-full.tar.gz -C $TEXLIVE_PREFIX/tlpkg</userinput></screen>
319
320 <note>
321 <para>
322 Only run <command>make texlinks</command> once. If it is rerun,
323 it can change all the program symlinks so that they point to
324 themselves and are useless.
325 </para>
326 </note>
327
328 <para>
329 Now install the additional files as the
330 <systemitem class="username">root</systemitem> user:
331 </para>
332
333<!-- if texmf does not need to be patched, remove &amp;&amp; from first line,
334 close userinput, screen, comment pushd, patch, popd -->
335<screen role="root"><userinput>tar -xf ../../texlive-&texmf-version;-texmf.tar.xz -C $TEXLIVE_PREFIX --strip-components=1</userinput></screen>
336
337 <para>
338 It has been established by debian that the <command>python</command>
339 scripts in <filename class="directory">latex-make</filename> will work
340 with <command>python3</command>, so update them to invoke that by running
341 the following command as the <systemitem class="username">root</systemitem>
342 user:
343 </para>
344
345<screen role="root"><userinput>for F in $TEXLIVE_PREFIX/texmf-dist/scripts/latex-make/*.py ; do
346 sed -i 's%/usr/bin/env python%/usr/bin/python3%' $F
347done
348</userinput></screen>
349
350 <para>
351 Still as the <systemitem class="username">root</systemitem> user,
352 initialize the new system (the commands <command>fmtutil-sys
353 --all</command> and <command>mtxrun --generate</command> will produce
354 a <emphasis>lot</emphasis> of output):
355 </para>
356
357<!-- Editors, fmtutil-sys and mtxrun \-\-generate 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 &amp;&amp;
363mtxrun --generate</userinput></screen>
364
365 <para>
366 You can now proceed to <xref linkend="asymptote"/>,
367 <xref linkend="biber"/>, <xref linkend="dvisvgm"/> and / or <xref
368 linkend="xindy"/> if you wish to install them.
369 </para>
370
371 </sect2>
372
373 <sect2 role="commands">
374 <title>Command Explanations</title>
375
376 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
377 href="../../xincludes/tex-prefix.xml"/>
378
379 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
380 href="../../xincludes/tex-lib.xml"/>
381
382 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
383 href="../../xincludes/static-libraries.xml"/>
384
385 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
386 href="../../xincludes/tex-shared.xml"/>
387
388 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
389 href="../../xincludes/tex-system.xml"/>
390<!--
391 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
392 href="../../xincludes/tex-xpdf.xml"/>-->
393
394 <para>
395 <command>--disable-dvisvgm</command>: As noted above, the shipped version
396 of dvisvgm, which has modified configuration files, cannot be built with
397 shared system libraries.
398 </para>
399
400 <para>
401 <option>--without-x</option>: use this if you do not have Xorg installed.
402 </para>
403
404 <para>
405 <command>/sbin/ldconfig</command>: this has to be run here so that
406 <command>make texlinks</command> can use kpsewhich.
407 </para>
408
409 <para>
410 <command>make texlinks</command> : this runs the texlinks.sh script
411 to create symbolic links from formats to engines. In
412 practice, several of the targets such as <command>xetex</command> are now
413 separate binaries and for these it will report "file already exists".
414 </para>
415
416 <para>
417 <command>tar -xf texlive-&texmf-version;-texmf.tar.xz -C $TEXLIVE_PREFIX --strip-components=1</command>:
418 the tarball contains the files for the texmf-dist directory, and because
419 of its size we do not want to waste time and space untarring it and then
420 copying the files.
421 </para>
422
423 <para>
424 <command>install -v -m644 ../texk/tests/TeXLive/*
425 $TEXLIVE_PREFIX/tlpkg/TeXLive/</command>: This puts the perl
426 modules <filename>TLConfig.pm</filename> and <filename>TLUtils.pm</filename>
427 into the directory where the binary installer puts them - it is at the
428 start of the perl @INC@ PATH within texlive when installed using the above
429 configure switches. Without these modules, texlive is unusable.
430 </para>
431
432 <para>
433 <command>mktexlsr</command>: Create an <filename>ls-R</filename> file
434 which lists what was installed - this is used by kpathsea to find files.
435 </para>
436
437 <para>
438 <command>fmtutil-sys --all</command>: This initializes the TeX formats,
439 Metafont bases and Metapost mems.
440 </para>
441
442 <para>
443 <command>mtxrun --generate</command>: This initializes the ConTeXt system.
444 </para>
445
446 </sect2>
447
448 <sect2 role="content">
449 <title>Contents</title>
450
451 <segmentedlist>
452 <segtitle>Installed Programs</segtitle>
453 <segtitle>Installed Libraries</segtitle>
454 <segtitle>Installed Directories</segtitle>
455
456 <seglistitem>
457 <seg>Over 300 binaries and symlinks to scripts</seg>
458 <seg>libkpathsea.so,
459 libptexenc.so,
460 libsynctex.so,
461 libtexlua52.so,
462 libtexluajit.so
463 </seg>
464 <seg>$TEXLIVE_PREFIX/bin,
465 $TEXLIVE_PREFIX/include,
466 $TEXLIVE_PREFIX/lib,
467 $TEXLIVE_PREFIX/texmf-dist
468 </seg>
469 </seglistitem>
470 </segmentedlist>
471
472 <variablelist>
473 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
474 <?dbfo list-presentation="list"?>
475 <?dbhtml list-presentation="table"?>
476
477 <varlistentry id="texlive-programs">
478 <term><command>TeX&nbsp;programs</command></term>
479 <listitem>
480 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
481 href="../../xincludes/texprogs.xml"/>
482 <indexterm zone="texlive texlive-programs">
483 <primary sortas="b-texlive-programs">TeX Live programs</primary>
484 </indexterm>
485 </listitem>
486 </varlistentry>
487
488 <varlistentry id="libkpathsea">
489 <term><filename class="libraryfile">libkpathsea.so</filename></term>
490 <listitem>
491 <para>
492 (kpathsearch) exists to look up a file in a list of directories
493 and is used by <command>kpsewhich</command>
494 </para>
495 <indexterm zone="texlive libkpathsea">
496 <primary sortas="c-libkpathsea">libkpathsea.so</primary>
497 </indexterm>
498 </listitem>
499 </varlistentry>
500
501 <varlistentry id="libptexenc">
502 <term><filename class="libraryfile">libptexenc.so</filename></term>
503 <listitem>
504 <para>
505 is a library for Japanese pTeX (publishing TeX)
506 </para>
507 <indexterm zone="texlive libptexenc">
508 <primary sortas="c-libptexenc">libptexenc.so</primary>
509 </indexterm>
510 </listitem>
511 </varlistentry>
512
513 <varlistentry id="libsynctex">
514 <term><filename class="libraryfile">libsynctex.so</filename></term>
515 <listitem>
516 <para>
517 is the SyncTeX (Synchronize TeXnology) parser library
518 </para>
519 <indexterm zone="texlive libsynctex">
520 <primary sortas="c-libsynctex">libsynctex.so</primary>
521 </indexterm>
522 </listitem>
523 </varlistentry>
524
525 <varlistentry id="libtexlua52">
526 <term><filename class="libraryfile">libtexlua52.so</filename></term>
527 <listitem>
528 <para>
529 provides Lua 5.2, modified for use with LuaTeX
530 </para>
531 <indexterm zone="texlive libtexlua52">
532 <primary sortas="c-libtexlua52">libtexlua52.so</primary>
533 </indexterm>
534 </listitem>
535 </varlistentry>
536
537 <varlistentry id="libtexluajit">
538 <term><filename class="libraryfile">libtexluajit.so</filename></term>
539 <listitem>
540 <para>
541 provides LuaJIT, modified for use with LuaJITTeX
542 </para>
543 <indexterm zone="texlive libtexluajit">
544 <primary sortas="c-libtexluajit">libtexluajit.so</primary>
545 </indexterm>
546 </listitem>
547 </varlistentry>
548 </variablelist>
549
550 </sect2>
551
552</sect1>
Note: See TracBrowser for help on using the repository browser.