[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[c904794a] | 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 |
|
---|
[f3e940f7] | 7 | <!ENTITY tl-installer-download-http "https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz">
|
---|
[c904794a] | 8 |
|
---|
| 9 | <!ENTITY tl-installer-download-ftp " ">
|
---|
[9167f8d] | 10 | <!ENTITY tl-installer-md5sum "cec36f23d7d4e1a4a2a90f77bad8e667">
|
---|
| 11 | <!ENTITY tl-installer-date "20230313"> <!-- in the directory name -->
|
---|
| 12 | <!ENTITY tl-installer-size "5.5 MB">
|
---|
[72b9f532] | 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">
|
---|
[c904794a] | 14 | <!ENTITY tl-installer-time "varies, depending on network speed and traffic">
|
---|
[e1b72e2] | 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 |
|
---|
[73089ed3] | 32 | There is an option \-\-no-copy for updmap.pl, unclear if that can be used here,
|
---|
[e1b72e2] | 33 | and it might have been removed by next year. -->
|
---|
[c904794a] | 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 |
|
---|
[fa3edfef] | 49 | <para>
|
---|
| 50 | The <application>TeX Live</application> package is a comprehensive
|
---|
[29c5331] | 51 | TeX document production system. It includes TeX, LaTeX2e, LuaLaTeX,
|
---|
[fa3edfef] | 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
|
---|
[27885e7] | 60 | documentation. The installer is updated frequently, so any published
|
---|
| 61 | md5sum will soon be out of date. Newer versions of the
|
---|
[fa3edfef] | 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>
|
---|
[c904794a] | 66 |
|
---|
[150482f] | 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
|
---|
[29c5331] | 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
|
---|
[150482f] | 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 |
|
---|
[29c5331] | 78 | <note>
|
---|
| 79 | <para>
|
---|
| 80 | If you wish to use ConTeXt with <command>luametatex</command> (most of
|
---|
[2e099a8] | 81 | the old MKII and MKIV code was removed from TeX Live 2023 by the ConTeXt
|
---|
[29c5331] | 82 | developer), using the binary is probably the easiest option. The source
|
---|
[2e099a8] | 83 | no-longer ships with TeX Live and is poorly adapted to building with
|
---|
[0c60ebd9] | 84 | systems except those running Mac and Windows. See comments 1 to 5 of
|
---|
[29c5331] | 85 | <ulink url="&blfs-ticket-root;17823">#17823</ulink>.
|
---|
| 86 | </para>
|
---|
| 87 | </note>
|
---|
| 88 |
|
---|
[c1d28f5] | 89 | <!-- editors: latex-test-20240320.tar.xz at ~/ken/tex-testfiles and the
|
---|
[caea737] | 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
|
---|
[29c5331] | 92 | testing asy to ensure that the symlinks are as needed. Please also be aware
|
---|
[32bcdbf0] | 93 | that removing a collection might leave huge backups in tlpkg/backups -->
|
---|
[4a37aa1] | 94 |
|
---|
[424a19b] | 95 | &lfs122_checked;
|
---|
[c904794a] | 96 |
|
---|
| 97 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 98 | <itemizedlist spacing="compact">
|
---|
| 99 | <listitem>
|
---|
[fa3edfef] | 100 | <para>
|
---|
| 101 | Download (HTTP): <ulink url="&tl-installer-download-http;"/>
|
---|
| 102 | </para>
|
---|
[c904794a] | 103 | </listitem>
|
---|
| 104 | <listitem>
|
---|
[fa3edfef] | 105 | <para>
|
---|
| 106 | Download (FTP): <ulink url="&tl-installer-download-ftp;"/>
|
---|
| 107 | </para>
|
---|
[c904794a] | 108 | </listitem>
|
---|
| 109 | <listitem>
|
---|
[fa3edfef] | 110 | <para>
|
---|
[27885e7] | 111 | <!--Download MD5 sum: &tl-installer-md5sum; (for &tl-installer-date;)-->
|
---|
| 112 | Download MD5 sum: Varies frequently
|
---|
[fa3edfef] | 113 | </para>
|
---|
[c904794a] | 114 | </listitem>
|
---|
| 115 | <listitem>
|
---|
[fa3edfef] | 116 | <para>
|
---|
| 117 | Download size: &tl-installer-size;
|
---|
| 118 | </para>
|
---|
[c904794a] | 119 | </listitem>
|
---|
| 120 | <listitem>
|
---|
[fa3edfef] | 121 | <para>
|
---|
| 122 | Estimated disk space required: &tl-installer-buildsize;
|
---|
| 123 | </para>
|
---|
[c904794a] | 124 | </listitem>
|
---|
| 125 | <listitem>
|
---|
[fa3edfef] | 126 | <para>
|
---|
| 127 | Estimated build time: &tl-installer-time;
|
---|
| 128 | </para>
|
---|
[c904794a] | 129 | </listitem>
|
---|
| 130 | </itemizedlist>
|
---|
| 131 |
|
---|
[5e61060f] | 132 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 133 | <para role="recommended">
|
---|
| 134 | <xref linkend="gnupg2"/> (to validate both the initial downloads, and also
|
---|
[036d820f] | 135 | any updates you might later make using <command>tlmgr</command>) and
|
---|
[396abe0] | 136 | <xref linkend="perl-libwww-perl"/> (to use a single connection to the server,
|
---|
[f911e63] | 137 | which will reduce its load and speed things up)
|
---|
[5e61060f] | 138 | </para>
|
---|
| 139 |
|
---|
[c904794a] | 140 | <bridgehead renderas="sect4">Recommended (at runtime)</bridgehead>
|
---|
| 141 | <para role="recommended">
|
---|
[5e61060f] | 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:
|
---|
[c904794a] | 145 | </para>
|
---|
[d7f0b08] | 146 | <para role="recommended">
|
---|
[8558044] | 147 | <xref role="runtime" linkend="gs"/> is dynamically loaded by
|
---|
[b517db8] | 148 | the external application <ulink url="https://dvisvgm.de/">dvisvgm</ulink>,
|
---|
[06fd9a2] | 149 | which is used by <application>asy</application> when that creates SVG
|
---|
| 150 | files.
|
---|
[c904794a] | 151 | </para>
|
---|
[d7f0b08] | 152 | <para role="recommended">
|
---|
[f5cdf41] | 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
|
---|
[46fb0f9] | 157 | need <xref role="runtime" linkend="x-window-system"/> (for PDF files,
|
---|
[f5cdf41] | 158 | this is to support a PDF viewer of your choice, for example
|
---|
| 159 | <xref role="nodep" linkend="epdfview"/>).
|
---|
[8c1b9f7] | 160 | </para>
|
---|
[00a3154] | 161 | <!-- seems to not be needed in 2021
|
---|
[d7f0b08] | 162 | <para role="recommended">
|
---|
[666e811] | 163 | the optional non-wide-character ncurses library (for "some binary-only
|
---|
[c904794a] | 164 | application") from the bottom of the <application>Ncurses</application>
|
---|
[06fd9a2] | 165 | page in LFS is needed
|
---|
| 166 | for xindy.run which is used by <application>xindy</application>
|
---|
[00a3154] | 167 | </para> -->
|
---|
[d7f0b08] | 168 | <para role="recommended">
|
---|
[06fd9a2] | 169 | The binary version of <application>asy</application> needs
|
---|
| 170 | <xref linkend="freeglut"/>.
|
---|
[8fc0db78] | 171 | </para>
|
---|
[f65def9] | 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>
|
---|
[3a10692] | 180 | <para role="recommended">
|
---|
| 181 | The binary versions of <application>biber</application> and
|
---|
[e77e6329] | 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
|
---|
[3a10692] | 185 | Note about binary-only applications in <application>libxcrypt</application> in
|
---|
[e77e6329] | 186 | LFS to install the ABI version 1 crypt library.
|
---|
[3a10692] | 187 | </para>
|
---|
[fa3edfef] | 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>
|
---|
[f594857] | 195 | <!-- text for runtime deps, shared with texlive -->
|
---|
[d7f0b08] | 196 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 197 | href="../../xincludes/texruntime.xml"/>
|
---|
[c904794a] | 198 |
|
---|
| 199 | </sect2>
|
---|
| 200 |
|
---|
| 201 | <sect2 role="installation">
|
---|
| 202 | <title>Binary Installation of TeX Live</title>
|
---|
| 203 |
|
---|
[8a4cd0a] | 204 | <para>
|
---|
[fa3edfef] | 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>.
|
---|
[8a4cd0a] | 209 | </para>
|
---|
| 210 |
|
---|
[6e095ff] | 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
|
---|
[5dee803] | 221 | class="username">root</systemitem> user, <emphasis>that will change the
|
---|
| 222 | ownership</emphasis>, which breaks usage by normal users.
|
---|
[6e095ff] | 223 | </para>
|
---|
| 224 | </note>
|
---|
| 225 |
|
---|
[8a4cd0a] | 226 | <para>
|
---|
[fa3edfef] | 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.
|
---|
[8a4cd0a] | 232 | </para>
|
---|
[fa3edfef] | 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
|
---|
[ed3707e] | 248 | problems. For example, if your x86_64 processor does not support 3dnowext or
|
---|
[fa3edfef] | 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>
|
---|
[8a4cd0a] | 255 | </note>
|
---|
[c904794a] | 256 |
|
---|
[fa3edfef] | 257 | <para>
|
---|
| 258 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 259 | </para>
|
---|
[c904794a] | 260 |
|
---|
[db39404] | 261 | <screen role="root"><userinput>TEXLIVE_INSTALL_PREFIX=/opt/texlive ./install-tl</userinput></screen>
|
---|
[c904794a] | 262 |
|
---|
[fa3edfef] | 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>
|
---|
[c904794a] | 270 |
|
---|
[00a3154] | 271 | <para>
|
---|
[342d139a] | 272 | It has been established by Debian that the <command>python</command>
|
---|
[00a3154] | 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 |
|
---|
[c904794a] | 284 | </sect2>
|
---|
| 285 |
|
---|
[8fc0db78] | 286 | <sect2 role="commands">
|
---|
| 287 | <title>Command Explanations</title>
|
---|
| 288 |
|
---|
[00a3154] | 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 |
|
---|
[8fc0db78] | 295 | <para>
|
---|
| 296 | <option>./install-tl --location
|
---|
| 297 | http://mirror.aut.ac.nz/CTAN/systems/texlive/tlnet/</option>: use a
|
---|
[ed3707e] | 298 | variation of this if you wish to use a different mirror, for example, because
|
---|
[8fc0db78] | 299 | you are in New Zealand but the installer chooses to use an Australian
|
---|
[75b1a338] | 300 | mirror. The list of mirrors is at
|
---|
| 301 | <ulink url='https://ctan.org/mirrors/'/>.
|
---|
[8fc0db78] | 302 | </para>
|
---|
| 303 |
|
---|
| 304 | </sect2>
|
---|
| 305 |
|
---|
[c904794a] | 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>
|
---|
[666e811] | 329 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 330 | href="../../xincludes/texprogs.xml"/>
|
---|
[c904794a] | 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>
|
---|