1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY tl-installer-download-http "https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz">
|
---|
8 |
|
---|
9 | <!ENTITY tl-installer-download-ftp " ">
|
---|
10 | <!ENTITY tl-installer-md5sum "cec36f23d7d4e1a4a2a90f77bad8e667">
|
---|
11 | <!ENTITY tl-installer-date "20230313"> <!-- in the directory name -->
|
---|
12 | <!ENTITY tl-installer-size "5.5 MB">
|
---|
13 | <!ENTITY tl-installer-buildsize "85 MB for plain TeX, typically 2 to 4 MB for latex and later engines, 8.6 GB if everything is included">
|
---|
14 | <!ENTITY tl-installer-time "varies, depending on network speed and traffic">
|
---|
15 | <!-- The following commit will change future installs so that the scripts in
|
---|
16 | texmf-dist linked from bin/ are copied instead of symlinks.
|
---|
17 |
|
---|
18 | commit 0c9707142465610f0e22745a22bf8c71850cef49
|
---|
19 | Author: Karl Berry <karl@freefriends.org>
|
---|
20 | Date: Tue Mar 19 22:03:22 2024 +0000
|
---|
21 |
|
---|
22 | (%opts): create the generically-named output files as copies by default.
|
---|
23 | (@cmdline_options): allow -no-copy.
|
---|
24 | (help): document.
|
---|
25 |
|
---|
26 |
|
---|
27 | git-svn-id: svn://tug.org/texlive/trunk@70707 c570f23f-e606-0410-a88d-b1316a301751
|
---|
28 |
|
---|
29 | That was done to simplify the process (windows has always used copy) and will likely
|
---|
30 | make the installed sizes somewhat bigger.
|
---|
31 |
|
---|
32 | There is an option \-\-no-copy for updmap.pl, unclear if that can be used here,
|
---|
33 | and it might have been removed by next year. -->
|
---|
34 | ]>
|
---|
35 |
|
---|
36 | <sect1 id="tl-installer" xreflabel="install-tl-unx">
|
---|
37 | <?dbhtml filename="tl-installer.html"?>
|
---|
38 |
|
---|
39 |
|
---|
40 | <title>install-tl-unx</title>
|
---|
41 |
|
---|
42 | <indexterm zone="tl-installer">
|
---|
43 | <primary sortas="a-install-tl-unx">install-tl-unx</primary>
|
---|
44 | </indexterm>
|
---|
45 |
|
---|
46 | <sect2 role="package">
|
---|
47 | <title>Introduction to TeX Live and its installer</title>
|
---|
48 |
|
---|
49 | <para>
|
---|
50 | The <application>TeX Live</application> package is a comprehensive
|
---|
51 | TeX document production system. It includes TeX, LaTeX2e, LuaLaTeX,
|
---|
52 | Metafont, MetaPost, BibTeX and many other programs; an extensive
|
---|
53 | collection of macros, fonts and documentation; and support for
|
---|
54 | typesetting in many different scripts from around the world.
|
---|
55 | </para>
|
---|
56 |
|
---|
57 | <para>
|
---|
58 | This page is for people who wish to use the binary installer to
|
---|
59 | provide the programs, the scripts, and a lot of supporting files and
|
---|
60 | documentation. The installer is updated frequently, so any published
|
---|
61 | md5sum will soon be out of date. Newer versions of the
|
---|
62 | installer are expected to work with these instructions, for so long as
|
---|
63 | they install to a
|
---|
64 | <filename class="directory">&texlive-year;/</filename> directory.
|
---|
65 | </para>
|
---|
66 |
|
---|
67 | <para>
|
---|
68 | There are two reasons why you may wish to install the binaries in BLFS:
|
---|
69 | either you need a smaller install (e.g. at a minimum plain TeX without
|
---|
70 | LaTeX, ConTeXt, etc), or you wish to use <command>tlmgr</command> to
|
---|
71 | get updates whilst this version is supported (typically, until March of
|
---|
72 | the year after it was released). For the latter, you might prefer to
|
---|
73 | install in your <filename class="directory">/home</filename> directory
|
---|
74 | as an unprivileged user, and to then make corresponding changes to the
|
---|
75 | PATH in your <filename>~/.bashrc</filename> or equivalent.
|
---|
76 | </para>
|
---|
77 |
|
---|
78 | <note>
|
---|
79 | <para>
|
---|
80 | If you wish to use ConTeXt with <command>luametatex</command> (most of
|
---|
81 | the old MKII and MKIV code was removed from TeX Live 2023 by the ConTeXt
|
---|
82 | developer), using the binary is probably the easiest option. The source
|
---|
83 | no-longer ships with TeX Live and is poorly adapted to building with
|
---|
84 | systems except those running Mac and Windows. See comments 1 to 5 of
|
---|
85 | <ulink url="&blfs-ticket-root;17823">#17823</ulink>.
|
---|
86 | </para>
|
---|
87 | </note>
|
---|
88 |
|
---|
89 | <!-- editors: latex-test-20240320.tar.xz at ~/ken/tex-testfiles and the
|
---|
90 | ABOUT.pdf now deal with specifying which collections are needed when using
|
---|
91 | binary texlive. Please do not sign off this package without at least
|
---|
92 | testing asy to ensure that the symlinks are as needed. Please also be aware
|
---|
93 | that removing a collection might leave huge backups in tlpkg/backups -->
|
---|
94 |
|
---|
95 | &lfs122_checked;
|
---|
96 |
|
---|
97 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
98 | <itemizedlist spacing="compact">
|
---|
99 | <listitem>
|
---|
100 | <para>
|
---|
101 | Download (HTTP): <ulink url="&tl-installer-download-http;"/>
|
---|
102 | </para>
|
---|
103 | </listitem>
|
---|
104 | <listitem>
|
---|
105 | <para>
|
---|
106 | Download (FTP): <ulink url="&tl-installer-download-ftp;"/>
|
---|
107 | </para>
|
---|
108 | </listitem>
|
---|
109 | <listitem>
|
---|
110 | <para>
|
---|
111 | <!--Download MD5 sum: &tl-installer-md5sum; (for &tl-installer-date;)-->
|
---|
112 | Download MD5 sum: Varies frequently
|
---|
113 | </para>
|
---|
114 | </listitem>
|
---|
115 | <listitem>
|
---|
116 | <para>
|
---|
117 | Download size: &tl-installer-size;
|
---|
118 | </para>
|
---|
119 | </listitem>
|
---|
120 | <listitem>
|
---|
121 | <para>
|
---|
122 | Estimated disk space required: &tl-installer-buildsize;
|
---|
123 | </para>
|
---|
124 | </listitem>
|
---|
125 | <listitem>
|
---|
126 | <para>
|
---|
127 | Estimated build time: &tl-installer-time;
|
---|
128 | </para>
|
---|
129 | </listitem>
|
---|
130 | </itemizedlist>
|
---|
131 |
|
---|
132 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
133 | <para role="recommended">
|
---|
134 | <xref linkend="gnupg2"/> (to validate both the initial downloads, and also
|
---|
135 | any updates you might later make using <command>tlmgr</command>) and
|
---|
136 | <xref linkend="perl-libwww-perl"/> (to use a single connection to the server,
|
---|
137 | which will reduce its load and speed things up)
|
---|
138 | </para>
|
---|
139 |
|
---|
140 | <bridgehead renderas="sect4">Recommended (at runtime)</bridgehead>
|
---|
141 | <para role="recommended">
|
---|
142 | The binaries are mostly linked to included static libraries or
|
---|
143 | general (LFS) system libraries, but a few of the programs
|
---|
144 | and several scripts will fail if the following packages are not present:
|
---|
145 | </para>
|
---|
146 | <para role="recommended">
|
---|
147 | <xref role="runtime" linkend="gs"/> is dynamically loaded by
|
---|
148 | the external application <ulink url="https://dvisvgm.de/">dvisvgm</ulink>,
|
---|
149 | which is used by <application>asy</application> when that creates SVG
|
---|
150 | files.
|
---|
151 | </para>
|
---|
152 | <para role="recommended">
|
---|
153 | <xref role="runtime" linkend="xorg7-lib"/> and
|
---|
154 | <xref role="runtime" linkend="libxcb"/> are needed for inimf, mf,
|
---|
155 | pdfclose, pdfopen and xdvi-xaw. But if you are using asy, or using a
|
---|
156 | <application>TeX</application> engine to create a PDF file, you will
|
---|
157 | need <xref role="runtime" linkend="x-window-system"/> (for PDF files,
|
---|
158 | this is to support a PDF viewer of your choice, for example
|
---|
159 | <xref role="nodep" linkend="epdfview"/>).
|
---|
160 | </para>
|
---|
161 | <!-- seems to not be needed in 2021
|
---|
162 | <para role="recommended">
|
---|
163 | the optional non-wide-character ncurses library (for "some binary-only
|
---|
164 | application") from the bottom of the <application>Ncurses</application>
|
---|
165 | page in LFS is needed
|
---|
166 | for xindy.run which is used by <application>xindy</application>
|
---|
167 | </para> -->
|
---|
168 | <para role="recommended">
|
---|
169 | The binary version of <application>asy</application> needs
|
---|
170 | <xref linkend="freeglut"/>.
|
---|
171 | </para>
|
---|
172 | <para> <!-- needed, but cannot recommend :-) -->
|
---|
173 | The binary version of asy is linked to libGLX.so.0 from
|
---|
174 | <ulink url="https://gitlab.freedesktop.org/glvnd/libglvnd/">libglvnd</ulink>,
|
---|
175 | but installing that will break future updates of BLFS packages such as
|
---|
176 | <xref linkend="mesa"/>. Work around that by creating a symlink as the
|
---|
177 | <systemitem class="username">root</systemitem> user:
|
---|
178 | </para>
|
---|
179 | <screen role="nodump"><userinput>ln -sv libGL.so.1 /usr/lib/libGLX.so.0</userinput></screen>
|
---|
180 | <para role="recommended">
|
---|
181 | The binary versions of <application>biber</application> and
|
---|
182 | <application>xindy</application> are linked to <filename
|
---|
183 | class='libraryfile'>libcrypt.so.1</filename> from old versions
|
---|
184 | of <application>glibc</application>. To use these two applications, follow the
|
---|
185 | Note about binary-only applications in <application>libxcrypt</application> in
|
---|
186 | LFS to install the ABI version 1 crypt library.
|
---|
187 | </para>
|
---|
188 | <note>
|
---|
189 | <para>
|
---|
190 | As always with contributed binary software, it is possible that the
|
---|
191 | required dependencies may change when the installer is updated. In
|
---|
192 | particular, these dependencies have only been checked on x86_64.
|
---|
193 | </para>
|
---|
194 | </note>
|
---|
195 | <!-- text for runtime deps, shared with texlive -->
|
---|
196 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
197 | href="../../xincludes/texruntime.xml"/>
|
---|
198 |
|
---|
199 | </sect2>
|
---|
200 |
|
---|
201 | <sect2 role="installation">
|
---|
202 | <title>Binary Installation of TeX Live</title>
|
---|
203 |
|
---|
204 | <para>
|
---|
205 | The <application>TeX Live</application> set of programs with its
|
---|
206 | supporting documents, fonts, and utilities is very large. The upstream
|
---|
207 | maintainers recommend placing all files in a single directory structure.
|
---|
208 | BLFS recommends <filename class='directory'>/opt/texlive</filename>.
|
---|
209 | </para>
|
---|
210 |
|
---|
211 | <note>
|
---|
212 | <para>
|
---|
213 | If you have chosen to install the binary as a normal user, the directory
|
---|
214 | for the prefix needs to be writable by that user. The
|
---|
215 | <systemitem class="username">root</systemitem> user can chown
|
---|
216 | <filename class="directory">/opt/texlive/2024</filename> to that
|
---|
217 | user before the user starts the install.<!-- Problem was reported on
|
---|
218 | texlive list, at least ls-R was involved and maybe other files,
|
---|
219 | suggestion was to remove, chown prefix, reinstall. --> If any later
|
---|
220 | change in that directory is made by the <systemitem
|
---|
221 | class="username">root</systemitem> user, <emphasis>that will change the
|
---|
222 | ownership</emphasis>, which breaks usage by normal users.
|
---|
223 | </para>
|
---|
224 | </note>
|
---|
225 |
|
---|
226 | <para>
|
---|
227 | As with any other package, unpack the installer and change into its
|
---|
228 | directory, <filename class='directory'>
|
---|
229 | install-tl-<CCYYMMDD></filename>.
|
---|
230 | This directory name changes when the installer is updated, so replace
|
---|
231 | <CCYYMMDD> by the correct directory name.
|
---|
232 | </para>
|
---|
233 |
|
---|
234 | <note>
|
---|
235 | <para>
|
---|
236 | The distribution binaries installed below may use static linking
|
---|
237 | for general linux system libraries. Additional libraries or
|
---|
238 | interpreters as specified in the dependencies section do not need to
|
---|
239 | be present during the install, but the programs that need them will
|
---|
240 | not run until their specific dependencies have been installed.
|
---|
241 | </para>
|
---|
242 |
|
---|
243 | <!-- please keep something like this in the future -->
|
---|
244 | <para>
|
---|
245 | With all contributed binary software, there may be a mismatch between
|
---|
246 | the builder's toolchain and your hardware. In most of TeX this will
|
---|
247 | probably not matter, but in uncommon corner cases you might hit
|
---|
248 | problems. For example, if your x86_64 processor does not support 3dnowext or
|
---|
249 | 3dnow, the 2014-06-28 binary failed in conTeXt when running LuaTeX,
|
---|
250 | although lualatex worked, as did the i686 binaries on the same
|
---|
251 | machine. In such cases, the easiest solution is to install texlive
|
---|
252 | from source. Similarly, the x86_64 binary version of
|
---|
253 | <command>asy</command> runs very slowly when creating 3-D diagrams.
|
---|
254 | </para>
|
---|
255 | </note>
|
---|
256 |
|
---|
257 | <para>
|
---|
258 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
259 | </para>
|
---|
260 |
|
---|
261 | <screen role="root"><userinput>TEXLIVE_INSTALL_PREFIX=/opt/texlive ./install-tl</userinput></screen>
|
---|
262 |
|
---|
263 | <para>
|
---|
264 | This command is interactive and allows selection or modification of
|
---|
265 | platform, packages, directories, and other options. The full installation
|
---|
266 | scheme will require about 4.9 gigabytes of disk space. The time to
|
---|
267 | complete the download will depend on your internet connection speed
|
---|
268 | and the number of packages selected.
|
---|
269 | </para>
|
---|
270 |
|
---|
271 | <para>
|
---|
272 | It has been established by Debian that the <command>python</command>
|
---|
273 | scripts in <filename class="directory">latex-make</filename> will work
|
---|
274 | with <command>python3</command>, so update them to invoke that by running
|
---|
275 | the following command as the <systemitem class="username">root</systemitem>
|
---|
276 | user:
|
---|
277 | </para>
|
---|
278 |
|
---|
279 | <screen role="root"><userinput>for F in /opt/texlive/&texlive-year;/texmf-dist/scripts/latex-make/*.py ; do
|
---|
280 | test -f $F && sed -i 's%/usr/bin/env python%/usr/bin/python3%' $F || true
|
---|
281 | done
|
---|
282 | </userinput></screen>
|
---|
283 |
|
---|
284 | </sect2>
|
---|
285 |
|
---|
286 | <sect2 role="commands">
|
---|
287 | <title>Command Explanations</title>
|
---|
288 |
|
---|
289 | <para>
|
---|
290 | <command>test -f $F && sed ...</command>: in a small install these
|
---|
291 | files might not be present, so test if they exist and if not return 'true'
|
---|
292 | to avoid any error if this command has been copied into one of your own install scripts.
|
---|
293 | </para>
|
---|
294 |
|
---|
295 | <para>
|
---|
296 | <option>./install-tl --location
|
---|
297 | http://mirror.aut.ac.nz/CTAN/systems/texlive/tlnet/</option>: use a
|
---|
298 | variation of this if you wish to use a different mirror, for example, because
|
---|
299 | you are in New Zealand but the installer chooses to use an Australian
|
---|
300 | mirror. The list of mirrors is at
|
---|
301 | <ulink url='https://ctan.org/mirrors/'/>.
|
---|
302 | </para>
|
---|
303 |
|
---|
304 | </sect2>
|
---|
305 |
|
---|
306 | <sect2 role="content">
|
---|
307 | <title>Contents</title>
|
---|
308 |
|
---|
309 | <segmentedlist>
|
---|
310 | <segtitle>Installed Programs</segtitle>
|
---|
311 | <segtitle>Installed Libraries</segtitle>
|
---|
312 | <segtitle>Installed Directories</segtitle>
|
---|
313 |
|
---|
314 | <seglistitem>
|
---|
315 | <seg>Over 300 binaries and symlinks to scripts</seg>
|
---|
316 | <seg>None</seg>
|
---|
317 | <seg>/opt/texlive</seg>
|
---|
318 | </seglistitem>
|
---|
319 | </segmentedlist>
|
---|
320 |
|
---|
321 | <variablelist>
|
---|
322 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
323 | <?dbfo list-presentation="list"?>
|
---|
324 | <?dbhtml list-presentation="table"?>
|
---|
325 |
|
---|
326 | <varlistentry id="tl-installer-programs">
|
---|
327 | <term><command>TeX programs</command></term>
|
---|
328 | <listitem>
|
---|
329 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
330 | href="../../xincludes/texprogs.xml"/>
|
---|
331 | <indexterm zone="tl-installer tl-installer-programs">
|
---|
332 | <primary sortas="b-tl-installer-programs">TeX Live programs</primary>
|
---|
333 | </indexterm>
|
---|
334 | </listitem>
|
---|
335 | </varlistentry>
|
---|
336 | </variablelist>
|
---|
337 |
|
---|
338 | </sect2>
|
---|
339 |
|
---|
340 | </sect1>
|
---|