source: pst/typesetting/texlive.xml@ c38d051

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 c38d051 was 1942294, checked in by Xi Ruoyao <xry111@…>, 2 years ago

texlive: drop the explanation of one removed command

  • Property mode set to 100644
File size: 19.7 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 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
383 href="../../xincludes/tex-prefix.xml"/>
384
385 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
386 href="../../xincludes/tex-lib.xml"/>
387
388 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
389 href="../../xincludes/static-libraries.xml"/>
390
391 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
392 href="../../xincludes/tex-shared.xml"/>
393
394 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
395 href="../../xincludes/tex-system.xml"/>
396<!--
397 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
398 href="../../xincludes/tex-xpdf.xml"/>-->
399
400 <para>
401 <command>--disable-dvisvgm</command>: As noted above, the shipped version
402 of dvisvgm, which has modified configuration files, cannot be built with
403 shared system libraries.
404 </para>
405
406 <para>
407 <option>--without-x</option>: use this if you do not have Xorg installed.
408 </para>
409
410 <para>
411 <command>/sbin/ldconfig</command>: this has to be run here so that
412 <command>make texlinks</command> can use kpsewhich.
413 </para>
414
415 <para>
416 <command>make texlinks</command> : this runs the texlinks.sh script
417 to create symbolic links from formats to engines. In
418 practice, several of the targets such as <command>xetex</command> are now
419 separate binaries and for these it will report "file already exists".
420 </para>
421
422 <para>
423 <command>tar -xf texlive-&texmf-version;-texmf.tar.xz -C /opt/texlive/&texlive-year; --strip-components=1</command>:
424 the tarball contains the files for the texmf-dist directory, and because
425 of its size we do not want to waste time and space untarring it and then
426 copying the files.
427 </para>
428
429 <para>
430 <command>install -v -m644 ../texk/tests/TeXLive/*
431 /opt/texlive/&texlive-year;/tlpkg/TeXLive/</command>: This puts the perl
432 modules <filename>TLConfig.pm</filename> and <filename>TLUtils.pm</filename>
433 into the directory where the binary installer puts them - it is at the
434 start of the perl @INC@ PATH within texlive when installed using the above
435 configure switches. Without these modules, texlive is unusable.
436 </para>
437
438 <para>
439 <command>mktexlsr</command>: Create an <filename>ls-R</filename> file
440 which lists what was installed - this is used by kpathsea to find files.
441 </para>
442
443 <para>
444 <command>fmtutil-sys --all</command>: This initializes the TeX formats,
445 Metafont bases and Metapost mems.
446 </para>
447
448 <para>
449 <command>mtxrun --generate</command>: This initializes the ConTeXt system.
450 </para>
451
452 </sect2>
453
454 <sect2 role="content">
455 <title>Contents</title>
456
457 <segmentedlist>
458 <segtitle>Installed Programs</segtitle>
459 <segtitle>Installed Libraries</segtitle>
460 <segtitle>Installed Directories</segtitle>
461
462 <seglistitem>
463 <seg>Over 300 binaries and symlinks to scripts</seg>
464 <seg>libkpathsea.so, libptexenc.so, libsynctex.so, libtexlua52.so,
465 libtexluajit.so</seg>
466 <seg>/opt/texlive/&texlive-year;/bin, /opt/texlive/&texlive-year;/include,
467 /opt/texlive/&texlive-year;/lib, /opt/texlive/&texlive-year;/texmf-dist</seg>
468 </seglistitem>
469 </segmentedlist>
470
471 <variablelist>
472 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
473 <?dbfo list-presentation="list"?>
474 <?dbhtml list-presentation="table"?>
475
476 <varlistentry id="texlive-programs">
477 <term><command>TeX&nbsp;programs</command></term>
478 <listitem>
479 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
480 href="../../xincludes/texprogs.xml"/>
481 <indexterm zone="texlive texlive-programs">
482 <primary sortas="b-texlive-programs">TeX Live programs</primary>
483 </indexterm>
484 </listitem>
485 </varlistentry>
486
487 <varlistentry id="libkpathsea">
488 <term><filename class="libraryfile">libkpathsea.so</filename></term>
489 <listitem>
490 <para>
491 (kpathsearch) exists to look up a file in a list of directories
492 and is used by <command>kpsewhich</command>
493 </para>
494 <indexterm zone="texlive libkpathsea">
495 <primary sortas="c-libkpathsea">libkpathsea.so</primary>
496 </indexterm>
497 </listitem>
498 </varlistentry>
499
500 <varlistentry id="libptexenc">
501 <term><filename class="libraryfile">libptexenc.so</filename></term>
502 <listitem>
503 <para>
504 is a library for Japanese pTeX (publishing TeX)
505 </para>
506 <indexterm zone="texlive libptexenc">
507 <primary sortas="c-libptexenc">libptexenc.so</primary>
508 </indexterm>
509 </listitem>
510 </varlistentry>
511
512 <varlistentry id="libsynctex">
513 <term><filename class="libraryfile">libsynctex.so</filename></term>
514 <listitem>
515 <para>
516 is the SyncTeX (Synchronize TeXnology) parser library
517 </para>
518 <indexterm zone="texlive libsynctex">
519 <primary sortas="c-libsynctex">libsynctex.so</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
523
524 <varlistentry id="libtexlua52">
525 <term><filename class="libraryfile">libtexlua52.so</filename></term>
526 <listitem>
527 <para>
528 provides Lua 5.2, modified for use with LuaTeX
529 </para>
530 <indexterm zone="texlive libtexlua52">
531 <primary sortas="c-libtexlua52">libtexlua52.so</primary>
532 </indexterm>
533 </listitem>
534 </varlistentry>
535
536 <varlistentry id="libtexluajit">
537 <term><filename class="libraryfile">libtexluajit.so</filename></term>
538 <listitem>
539 <para>
540 provides LuaJIT, modified for use with LuaJITTeX
541 </para>
542 <indexterm zone="texlive libtexluajit">
543 <primary sortas="c-libtexluajit">libtexluajit.so</primary>
544 </indexterm>
545 </listitem>
546 </varlistentry>
547 </variablelist>
548
549 </sect2>
550
551</sect1>
Note: See TracBrowser for help on using the repository browser.