source: pst/typesetting/texlive.xml@ 396abe0

11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 396abe0 was 396abe0, checked in by Ken Moffat <ken@…>, 2 years ago

Update to texlive-2022.

For the binary, libwww-perl is now recommended, therefore move
that from perl-dependencies to the top-level perl-modules.

  • Property mode set to 100644
File size: 20.0 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 <sect1info>
33 <date>$Date$</date>
34 </sect1info>
35
36 <title>texlive-&texlive-version;-source</title>
37
38 <indexterm zone="texlive">
39 <primary sortas="a-texlive">texlive</primary>
40 </indexterm>
41
42 <sect2 role="package">
43 <title>Introduction to TeX Live from source</title>
44
45 <note>
46 <para>
47 According to <ulink url="https://www.tug.org/historic/"/> the master
48 site in France only supports ftp and rsync. Now that ftp is generally
49 deprecated, that page has links to mirrors, some of which support https,
50 e.g. in Utah and Chemntiz as well as in China. If you prefer to use a
51 different mirror from the example links here, you will need to navigate
52 to systems/historic/texlive/&texlive-year; or systems/texlive/&texlive-year;
53 as the case may be.
54 <!-- the chinese mirros do not use a 'historic' subdirectory. -->
55 </para>
56 </note>
57
58 <para>
59 Most of TeX Live can be built from source without a pre-existing
60 installation, but <application>xindy</application> (for indexing) needs
61 working versions of <command>latex</command> and
62 <command>pdflatex</command> when configure is run, and the testsuite
63 and install for <command>asy</command> (for vector graphics) will fail
64 if TeX has not already been installed. Additionally,
65 <application>biber</application> is not provided within the
66 <application>texlive</application> source and the version of
67 <application>dvisvgm</application> in the
68 <application>texlive</application> tree cannot be built
69 if shared system libraries are used.
70 </para>
71
72 <para>
73 </para>
74 <para>
75 All of those packages are dealt with on their own pages and can be
76 built after installing this package. If you have not already done so, you
77 should start at <xref linkend="tex-path"/> so that the final commands to
78 initialise the new installation will be found.
79 </para>
80
81 &lfs111_checked;
82
83 <bridgehead renderas="sect3">Package Information</bridgehead>
84 <itemizedlist spacing="compact">
85 <listitem>
86 <para>
87 Download (HTTP): <ulink url="&texlive-download-http;"/>
88 </para>
89 </listitem>
90 <listitem>
91 <para>
92 Download (FTP): <ulink url="&texlive-download-ftp;"/>
93 </para>
94 </listitem>
95 <listitem>
96 <para>
97 Download MD5 sum: &texlive-md5sum;
98 </para>
99 </listitem>
100 <listitem>
101 <para>
102 Download size: &texlive-size;
103 </para>
104 </listitem>
105 <listitem>
106 <para>
107 Estimated disk space required: &texlive-buildsize;
108 </para>
109 </listitem>
110 <listitem>
111 <para>
112 Estimated build time: &texlive-time;
113 </para>
114 </listitem>
115 </itemizedlist>
116
117 <bridgehead renderas="sect3">Required Additional Downloads</bridgehead>
118
119 <para>
120 Much of the texlive environment (including scripts, documentation,
121 fonts, and various other files) is not part of the source tarball.
122 You must download it separately. This will give you all of the
123 additional files which are provided by a full install of the binary
124 version, there is no realistic way to restrict which parts get
125 installed.
126 </para>
127
128 <para>
129 Because of the size of this package, it is unlikely to be mirrored by
130 BLFS mirrors. In case of difficulty, go to http://www.ctan.org/mirrors/
131 to find a more-accessible mirror.
132 </para>
133
134 <itemizedlist spacing="compact">
135 <listitem>
136 <para>
137 Download (HTTP): <ulink url="&texlive-texmf-download-http;"/>
138 </para>
139 </listitem>
140 <listitem>
141 <para>
142 Download (FTP): <ulink url="&texlive-texmf-download-ftp;"/>
143 </para>
144 </listitem>
145 <listitem>
146 <para>
147 Download MD5 sum: &texlive-texmf-md5sum;
148 </para>
149 </listitem>
150 <listitem>
151 <para>
152 Download size: &texlive-texmf-size;
153 </para>
154 </listitem>
155 </itemizedlist>
156
157 <para>
158 From the 2019 year, the tlpdb database of the packages within texlive is
159 no-longer installed with the source. But <command>texdoc</command> needs
160 a cache file derived from this (and will create the cache on its first
161 run).
162 </para>
163
164 <itemizedlist spacing="compact">
165 <listitem>
166 <para>
167 Download (HTTP): <ulink url="&texlive-tlpdb-download-http;"/>
168 </para>
169 </listitem>
170 <listitem>
171 <para>
172 Download (FTP): <ulink url="&texlive-tlpdb-download-ftp;"/>
173 </para>
174 </listitem>
175 <listitem>
176 <para>
177 Download MD5 sum: &texlive-tlpdb-md5sum;
178 </para>
179 </listitem>
180 <listitem>
181 <para>
182 Download size: &texlive-tlpdb-size;
183 </para>
184 </listitem>
185
186<!-- <listitem>
187 <para>
188 Required patch: <ulink url=
189 "&patch-root;/texlive-&texlive-version;-upstream_fixes-1.patch"/>
190 </para>
191 </listitem>-->
192 </itemizedlist>
193
194 <bridgehead renderas="sect3">TeX Live from source Dependencies</bridgehead>
195
196 <bridgehead renderas="sect4">Recommended</bridgehead>
197 <para role="recommended">
198 <xref linkend="gs"/> <emphasis>including
199 <filename>libgs.so</filename></emphasis>, <!--(for dvisvgm, which is used by e.g.
200 <xref role="nodep" linkend="asymptote"/>); still referenced for dynamic loading,
201 even without dvisvgm - e.fg. by dvipsk -->
202 <xref linkend="x-window-system"/>
203 </para>
204
205 <!-- text for recommended libraries -->
206 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
207 href="../../xincludes/texrecommendlibs.xml"/>
208
209<!-- the following ensures jhalfs will set paths before running texlive -->
210
211 <para role="recommended">
212 Furthermore, the instructions below assume you are using the layout
213 described in <xref linkend="tex-path"/>.
214 </para>
215
216 <bridgehead renderas="sect4">Optional</bridgehead>
217 <!-- text for optional deps -->
218 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
219 href="../../xincludes/texoptional.xml"/>
220
221 <bridgehead renderas="sect4">Runtime dependencies</bridgehead>
222 <!-- text for runtime deps, shared with tl-installer -->
223 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
224 href="../../xincludes/texruntime.xml"/>
225
226 <para condition="html" role="usernotes">User Notes:
227 <ulink url="&blfs-wiki;/texlive"/></para>
228
229 </sect2>
230
231 <sect2 role="installation">
232 <title>Installation of TeX Live</title>
233
234 <para>
235 Install TeX Live by running the following commands:
236 </para>
237
238 <caution>
239 <para>
240 If you wish to upgrade to current <application>texlive</application>
241 on an older system where extra packages (<application>asymptote</application>.
242 <application>biber</application>, <application>dvisvgm</application> or
243 <application>xindy</application>) have been installed, you will need to
244 reinstall those as well as fixing up your <literal>PATH</literal> for
245 <literal>/opt/texlive/&texlive-year;</literal>.
246 </para>
247 </caution>
248
249 <para>
250 The shared libraries will be installed into a texlive directory.
251 As the <systemitem class="username">root</systemitem> user, add it to
252 your <filename>/etc/ld.so.conf</filename>:
253 </para>
254
255<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; EOF
256<literal># Begin texlive &texlive-year; addition
257
258/opt/texlive/&texlive-year;/lib
259
260# End texlive &texlive-year; addition</literal>
261EOF</userinput></screen>
262
263 <note>
264 <para>
265 A successful install requires some texlive
266 commands to be run as the root user, so we will export the TEXARCH
267 variable to let <systemitem class="username">root</systemitem> use it.
268 </para>
269 </note>
270
271 <para>
272 Now, as a normal user:
273 </para>
274
275<screen><userinput>export TEXARCH=$(uname -m |
276 sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;
277
278mkdir texlive-build &amp;&amp;
279cd texlive-build &amp;&amp;
280
281../configure \
282 --prefix=/opt/texlive/&texlive-year; \
283 --bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \
284 --datarootdir=/opt/texlive/&texlive-year; \
285 --includedir=/opt/texlive/&texlive-year;/include \
286 --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
287 --libdir=/opt/texlive/&texlive-year;/lib \
288 --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
289 --disable-native-texlive-build \
290 --disable-static --enable-shared \
291 --disable-dvisvgm \
292 --with-system-cairo \
293 --with-system-fontconfig \
294 --with-system-freetype2 \
295 --with-system-gmp \
296 --with-system-graphite2 \
297 --with-system-harfbuzz \
298 --with-system-icu \
299 --with-system-libgs \
300 --with-system-libpaper \
301 --with-system-libpng \
302 --with-system-mpfr \
303 --with-system-pixman \
304 --with-system-zlib \
305 --with-banner-add=" - BLFS" &amp;&amp;
306
307make</userinput></screen>
308
309 <para>
310 To test the results, issue: <command>make check</command>.
311 </para>
312
313 <para>
314 Now, as the <systemitem class="username">root</systemitem> user:
315 </para>
316
317<!-- Editors, you can run 'make texlinks' in a DESTDIR by passing
318DESTDIR#some/where -->
319<screen role="root"><userinput>make install-strip &amp;&amp;
320/sbin/ldconfig &amp;&amp;
321make texlinks &amp;&amp;
322mkdir -pv /opt/texlive/&texlive-year;/tlpkg/TeXLive/ &amp;&amp;
323install -v -m644 ../texk/tests/TeXLive/* /opt/texlive/&texlive-year;/tlpkg/TeXLive/ &amp;&amp;
324tar -xf ../../texlive-&tex-tlpdb-version;-tlpdb-full.tar.gz -C /opt/texlive/&texlive-year;/tlpkg</userinput></screen>
325
326 <note>
327 <para>
328 Only run <command>make texlinks</command> once. If it is rerun,
329 it can change all the program symlinks so that they point to
330 themselves and are useless.
331 </para>
332 </note>
333
334 <para>
335 Now install the additional files as the
336 <systemitem class="username">root</systemitem> user:
337 </para>
338
339<!-- if texmf does not need to be patched, remove &amp;&amp; from first line,
340 close userinput, screen, comment pushd, patch, popd -->
341<screen role="root"><userinput>tar -xf ../../texlive-&texmf-version;-texmf.tar.xz -C /opt/texlive/&texlive-year; --strip-components=1</userinput></screen>
342
343 <para>
344 It has been established by debian that the <command>python</command>
345 scripts in <filename class="directory">latex-make</filename> will work
346 with <command>python3</command>, so update them to invoke that by running
347 the following command as the <systemitem class="username">root</systemitem>
348 user:
349 </para>
350
351<screen role="root"><userinput>for F in /opt/texlive/&texlive-year;/texmf-dist/scripts/latex-make/*.py ; do
352 sed -i 's%/usr/bin/env python%/usr/bin/python3%' $F
353done
354</userinput></screen>
355
356 <para>
357 Still as the <systemitem class="username">root</systemitem> user,
358 initialise the new system (the commands <command>fmtutil-sys
359 --all</command> and <command>mtxrun --generate</command> will produce
360 a <emphasis>lot</emphasis> of output):
361 </para>
362
363<!-- Editors, fmtutil-sys and mtxrun \-\-generate can apparently only be run on
364a real install, as root. But mktexlsr can be run in a DESTDIR with
365cd /YOUR/TEXMF/ROOT ; ls -LAR ./ >ls-R -->
366
367<screen role="root"><userinput>mktexlsr &amp;&amp;
368fmtutil-sys --all &amp;&amp;
369mtxrun --generate</userinput></screen>
370
371 <para>
372 You can now proceed to <xref linkend="asymptote"/>,
373 <xref linkend="biber"/>, <xref linkend="dvisvgm"/> and / or <xref
374 linkend="xindy"/> if you wish to install them.
375 </para>
376
377 </sect2>
378
379 <sect2 role="commands">
380 <title>Command Explanations</title>
381
382 <para>
383 <!-- https://tug.org/pipermail/tlbuild/2021q2/004885.html -->
384 <command>patch -Np1 -i ../texlive-&texlive-version;-source-upstream_fixes-1.patch</command>:
385 A small update to mpost and LuaTeX caused the binaries to be rebuilt.
386 This patch applies the same fixes.
387 </para>
388
389 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
390 href="../../xincludes/tex-prefix.xml"/>
391
392 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
393 href="../../xincludes/tex-lib.xml"/>
394
395 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
396 href="../../xincludes/static-libraries.xml"/>
397
398 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
399 href="../../xincludes/tex-shared.xml"/>
400
401 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
402 href="../../xincludes/tex-system.xml"/>
403<!--
404 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
405 href="../../xincludes/tex-xpdf.xml"/>-->
406
407 <para>
408 <command>--disable-dvisvgm</command>: As noted above, the shipped version
409 of dvisvgm, which has modified configuration files, cannot be built with
410 shared system libraries.
411 </para>
412
413 <para>
414 <option>--without-x</option>: use this if you do not have Xorg installed.
415 </para>
416
417 <para>
418 <command>/sbin/ldconfig</command>: this has to be run here so that
419 <command>make texlinks</command> can use kpsewhich.
420 </para>
421
422 <para>
423 <command>make texlinks</command> : this runs the texlinks.sh script
424 to create symbolic links from formats to engines. In
425 practice, several of the targets such as <command>xetex</command> are now
426 separate binaries and for these it will report "file already exists".
427 </para>
428
429 <para>
430 <command>tar -xf texlive-&texmf-version;-texmf.tar.xz -C /opt/texlive/&texlive-year; --strip-components=1</command>:
431 the tarball contains the files for the texmf-dist directory, and because
432 of its size we do not want to waste time and space untarring it and then
433 copying the files.
434 </para>
435
436 <para>
437 <command>install -v -m644 ../texk/tests/TeXLive/*
438 /opt/texlive/&texlive-year;/tlpkg/TeXLive/</command>: This puts the perl
439 modules <filename>TLConfig.pm</filename> and <filename>TLUtils.pm</filename>
440 into the directory where the binary installer puts them - it is at the
441 start of the perl @INC@ PATH within texlive when installed using the above
442 configure switches. Without these modules, texlive is unusable.
443 </para>
444
445 <para>
446 <command>mktexlsr</command>: Create an <filename>ls-R</filename> file
447 which lists what was installed - this is used by kpathsea to find files.
448 </para>
449
450 <para>
451 <command>fmtutil-sys --all</command>: This initializes the TeX formats,
452 Metafont bases and Metapost mems.
453 </para>
454
455 <para>
456 <command>mtxrun --generate</command>: This initializes the ConTeXt system.
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, libptexenc.so, libsynctex.so, libtexlua52.so,
472 libtexluajit.so</seg>
473 <seg>/opt/texlive/&texlive-year;/bin, /opt/texlive/&texlive-year;/include,
474 /opt/texlive/&texlive-year;/lib, /opt/texlive/&texlive-year;/texmf-dist</seg>
475 </seglistitem>
476 </segmentedlist>
477
478 <variablelist>
479 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
480 <?dbfo list-presentation="list"?>
481 <?dbhtml list-presentation="table"?>
482
483 <varlistentry id="texlive-programs">
484 <term><command>TeX&nbsp;programs</command></term>
485 <listitem>
486 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
487 href="../../xincludes/texprogs.xml"/>
488 <indexterm zone="texlive texlive-programs">
489 <primary sortas="b-texlive-programs">TeX Live programs</primary>
490 </indexterm>
491 </listitem>
492 </varlistentry>
493
494 <varlistentry id="libkpathsea">
495 <term><filename class="libraryfile">libkpathsea.so</filename></term>
496 <listitem>
497 <para>
498 (kpathsearch) exists to look up a file in a list of directories
499 and is used by <command>kpsewhich</command>
500 </para>
501 <indexterm zone="texlive libkpathsea">
502 <primary sortas="c-libkpathsea">libkpathsea.so</primary>
503 </indexterm>
504 </listitem>
505 </varlistentry>
506
507 <varlistentry id="libptexenc">
508 <term><filename class="libraryfile">libptexenc.so</filename></term>
509 <listitem>
510 <para>
511 is a library for Japanese pTeX (publishing TeX)
512 </para>
513 <indexterm zone="texlive libptexenc">
514 <primary sortas="c-libptexenc">libptexenc.so</primary>
515 </indexterm>
516 </listitem>
517 </varlistentry>
518
519 <varlistentry id="libsynctex">
520 <term><filename class="libraryfile">libsynctex.so</filename></term>
521 <listitem>
522 <para>
523 is the SyncTeX (Synchronize TeXnology) parser library
524 </para>
525 <indexterm zone="texlive libsynctex">
526 <primary sortas="c-libsynctex">libsynctex.so</primary>
527 </indexterm>
528 </listitem>
529 </varlistentry>
530
531 <varlistentry id="libtexlua52">
532 <term><filename class="libraryfile">libtexlua52.so</filename></term>
533 <listitem>
534 <para>
535 provides Lua 5.2, modified for use with LuaTeX
536 </para>
537 <indexterm zone="texlive libtexlua52">
538 <primary sortas="c-libtexlua52">libtexlua52.so</primary>
539 </indexterm>
540 </listitem>
541 </varlistentry>
542
543 <varlistentry id="libtexluajit">
544 <term><filename class="libraryfile">libtexluajit.so</filename></term>
545 <listitem>
546 <para>
547 provides LuaJIT, modified for use with LuaJITTeX
548 </para>
549 <indexterm zone="texlive libtexluajit">
550 <primary sortas="c-libtexluajit">libtexluajit.so</primary>
551 </indexterm>
552 </listitem>
553 </varlistentry>
554 </variablelist>
555
556 </sect2>
557
558</sect1>
Note: See TracBrowser for help on using the repository browser.