[eb38c8a] | 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 |
|
---|
[396abe0] | 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">
|
---|
[347e59c] | 8 | <!ENTITY texlive-download-ftp "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&texlive-version;-source.tar.xz">
|
---|
[815f5d86] | 9 | <!ENTITY texlive-md5sum "bec84c5d6e340967783302f432c78efe">
|
---|
[9167f8d] | 10 | <!ENTITY texlive-size "66 MB">
|
---|
[eb38c8a] | 11 |
|
---|
[9167f8d] | 12 | <!ENTITY texlive-buildsize "8.5 GB including the additional download and the tests, 7.7 GB installed">
|
---|
| 13 | <!ENTITY texlive-time "2.3 SBU including the additional download and the tests, building with parallelism=4">
|
---|
[eb38c8a] | 14 |
|
---|
[396abe0] | 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">
|
---|
[f594857] | 17 | <!ENTITY texlive-texmf-download-ftp "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&texmf-version;-texmf.tar.xz">
|
---|
[9167f8d] | 18 | <!ENTITY texlive-texmf-md5sum "704fb39c69e3710b8e9e9158cec5047a">
|
---|
| 19 | <!ENTITY texlive-texmf-size "3.7 GB">
|
---|
[eb38c8a] | 20 |
|
---|
[396abe0] | 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">
|
---|
[322aff6] | 22 | <!ENTITY texlive-tlpdb-download-ftp "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&tex-tlpdb-version;-tlpdb-full.tar.gz">
|
---|
[9167f8d] | 23 | <!ENTITY texlive-tlpdb-md5sum "5078a7ddaa7b309b7392e33916b817f7">
|
---|
| 24 | <!ENTITY texlive-tlpdb-size "3.2 MB">
|
---|
[322aff6] | 25 |
|
---|
[eb38c8a] | 26 | ]>
|
---|
| 27 |
|
---|
| 28 |
|
---|
[347e59c] | 29 | <sect1 id="texlive" xreflabel="texlive-&texlive-version;">
|
---|
| 30 | <?dbhtml filename="texlive.html"?>
|
---|
[eb38c8a] | 31 |
|
---|
| 32 |
|
---|
[347e59c] | 33 | <title>texlive-&texlive-version;-source</title>
|
---|
[eb38c8a] | 34 |
|
---|
[347e59c] | 35 | <indexterm zone="texlive">
|
---|
| 36 | <primary sortas="a-texlive">texlive</primary>
|
---|
[eb38c8a] | 37 | </indexterm>
|
---|
| 38 |
|
---|
| 39 | <sect2 role="package">
|
---|
[347e59c] | 40 | <title>Introduction to TeX Live from source</title>
|
---|
[eb38c8a] | 41 |
|
---|
[396abe0] | 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,
|
---|
[c9c6847] | 47 | e.g. in Utah and Chemnitz as well as in China. If you prefer to use a
|
---|
[396abe0] | 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 |
|
---|
[fa3edfef] | 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
|
---|
[48771ae] | 59 | <command>pdflatex</command> when configure is run, and the test suite
|
---|
[fa3edfef] | 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
|
---|
[26e8824] | 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.
|
---|
[fa3edfef] | 67 | </para>
|
---|
| 68 |
|
---|
[26e8824] | 69 | <para>
|
---|
| 70 | </para>
|
---|
[fa3edfef] | 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
|
---|
[ed3707e] | 75 | initialize the new installation will be found.
|
---|
[fa3edfef] | 76 | </para>
|
---|
[eb38c8a] | 77 |
|
---|
[c6fc0cb5] | 78 | &lfs120_checked;
|
---|
[eb38c8a] | 79 |
|
---|
| 80 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 81 | <itemizedlist spacing="compact">
|
---|
| 82 | <listitem>
|
---|
[fa3edfef] | 83 | <para>
|
---|
| 84 | Download (HTTP): <ulink url="&texlive-download-http;"/>
|
---|
| 85 | </para>
|
---|
[eb38c8a] | 86 | </listitem>
|
---|
| 87 | <listitem>
|
---|
[fa3edfef] | 88 | <para>
|
---|
| 89 | Download (FTP): <ulink url="&texlive-download-ftp;"/>
|
---|
| 90 | </para>
|
---|
[eb38c8a] | 91 | </listitem>
|
---|
| 92 | <listitem>
|
---|
[fa3edfef] | 93 | <para>
|
---|
| 94 | Download MD5 sum: &texlive-md5sum;
|
---|
| 95 | </para>
|
---|
[eb38c8a] | 96 | </listitem>
|
---|
| 97 | <listitem>
|
---|
[fa3edfef] | 98 | <para>
|
---|
| 99 | Download size: &texlive-size;
|
---|
| 100 | </para>
|
---|
[eb38c8a] | 101 | </listitem>
|
---|
| 102 | <listitem>
|
---|
[fa3edfef] | 103 | <para>
|
---|
| 104 | Estimated disk space required: &texlive-buildsize;
|
---|
| 105 | </para>
|
---|
[eb38c8a] | 106 | </listitem>
|
---|
| 107 | <listitem>
|
---|
[fa3edfef] | 108 | <para>
|
---|
| 109 | Estimated build time: &texlive-time;
|
---|
| 110 | </para>
|
---|
[eb38c8a] | 111 | </listitem>
|
---|
| 112 | </itemizedlist>
|
---|
| 113 |
|
---|
[5e61060f] | 114 | <bridgehead renderas="sect3">Required Additional Downloads</bridgehead>
|
---|
[eb38c8a] | 115 |
|
---|
[fa3edfef] | 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>
|
---|
[eb38c8a] | 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">
|
---|
[91b7b02] | 132 | <listitem>
|
---|
[fa3edfef] | 133 | <para>
|
---|
| 134 | Download (HTTP): <ulink url="&texlive-texmf-download-http;"/>
|
---|
| 135 | </para>
|
---|
[91b7b02] | 136 | </listitem>
|
---|
[eb38c8a] | 137 | <listitem>
|
---|
[fa3edfef] | 138 | <para>
|
---|
| 139 | Download (FTP): <ulink url="&texlive-texmf-download-ftp;"/>
|
---|
| 140 | </para>
|
---|
[eb38c8a] | 141 | </listitem>
|
---|
| 142 | <listitem>
|
---|
[fa3edfef] | 143 | <para>
|
---|
| 144 | Download MD5 sum: &texlive-texmf-md5sum;
|
---|
| 145 | </para>
|
---|
[eb38c8a] | 146 | </listitem>
|
---|
| 147 | <listitem>
|
---|
[fa3edfef] | 148 | <para>
|
---|
| 149 | Download size: &texlive-texmf-size;
|
---|
| 150 | </para>
|
---|
[eb38c8a] | 151 | </listitem>
|
---|
[8558044] | 152 | </itemizedlist>
|
---|
[322aff6] | 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 |
|
---|
[9eed74c] | 183 | <listitem>
|
---|
[fa3edfef] | 184 | <para>
|
---|
| 185 | Required patch: <ulink url=
|
---|
[9eed74c] | 186 | "&patch-root;/texlive-&texlive-version;-source-security_fix-1.patch"/>
|
---|
[fa3edfef] | 187 | </para>
|
---|
[9eed74c] | 188 | </listitem>
|
---|
[eb38c8a] | 189 | </itemizedlist>
|
---|
| 190 |
|
---|
[347e59c] | 191 | <bridgehead renderas="sect3">TeX Live from source Dependencies</bridgehead>
|
---|
[eb38c8a] | 192 |
|
---|
| 193 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 194 | <para role="recommended">
|
---|
| 195 | <xref linkend="x-window-system"/>
|
---|
| 196 | </para>
|
---|
[d7f0b08] | 197 |
|
---|
[c30eed1e] | 198 | <!-- text for recommended libraries -->
|
---|
[d7f0b08] | 199 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 200 | href="../../xincludes/texrecommendlibs.xml"/>
|
---|
[eb38c8a] | 201 |
|
---|
[6153e75] | 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 |
|
---|
[eb38c8a] | 209 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c30eed1e] | 210 | <!-- text for optional deps -->
|
---|
[d7f0b08] | 211 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 212 | href="../../xincludes/texoptional.xml"/>
|
---|
[eb38c8a] | 213 |
|
---|
| 214 | <bridgehead renderas="sect4">Runtime dependencies</bridgehead>
|
---|
[347e59c] | 215 | <!-- text for runtime deps, shared with tl-installer -->
|
---|
[d7f0b08] | 216 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 217 | href="../../xincludes/texruntime.xml"/>
|
---|
[eb38c8a] | 218 |
|
---|
| 219 | </sect2>
|
---|
| 220 |
|
---|
| 221 | <sect2 role="installation">
|
---|
[347e59c] | 222 | <title>Installation of TeX Live</title>
|
---|
[eb38c8a] | 223 |
|
---|
| 224 | <para>
|
---|
[347e59c] | 225 | Install TeX Live by running the following commands:
|
---|
[eb38c8a] | 226 | </para>
|
---|
| 227 |
|
---|
[26e8824] | 228 | <caution>
|
---|
[09a2590] | 229 | <para>
|
---|
[00a3154] | 230 | If you wish to upgrade to current <application>texlive</application>
|
---|
[1b32f1a] | 231 | on an older system where extra packages (<application>asymptote</application>,
|
---|
| 232 | <application>biber</application>, <application>dvisvgm</application>, or
|
---|
[26e8824] | 233 | <application>xindy</application>) have been installed, you will need to
|
---|
| 234 | reinstall those as well as fixing up your <literal>PATH</literal> for
|
---|
[ed3707e] | 235 | <literal>$TEXLIVE_PREFIX</literal>.
|
---|
[26e8824] | 236 | </para>
|
---|
| 237 | </caution>
|
---|
| 238 |
|
---|
[f594857] | 239 | <note>
|
---|
| 240 | <para>
|
---|
[26e8824] | 241 | A successful install requires some texlive
|
---|
[f594857] | 242 | commands to be run as the root user, so we will export the TEXARCH
|
---|
| 243 | variable to let <systemitem class="username">root</systemitem> use it.
|
---|
| 244 | </para>
|
---|
| 245 | </note>
|
---|
| 246 |
|
---|
| 247 | <para>
|
---|
| 248 | Now, as a normal user:
|
---|
| 249 | </para>
|
---|
[00a3154] | 250 |
|
---|
[ed3707e] | 251 | <screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &&
|
---|
[5e61060f] | 252 |
|
---|
[9eed74c] | 253 | patch -Np1 -i ../texlive-&texlive-version;-source-security_fix-1.patch &&
|
---|
| 254 |
|
---|
[eb38c8a] | 255 | mkdir texlive-build &&
|
---|
[ed3707e] | 256 | cd texlive-build &&
|
---|
| 257 |
|
---|
[067cb082] | 258 | ../configure -C \
|
---|
[ed3707e] | 259 | --prefix=$TEXLIVE_PREFIX \
|
---|
| 260 | --bindir=$TEXLIVE_PREFIX/bin/$TEXARCH \
|
---|
| 261 | --datarootdir=$TEXLIVE_PREFIX \
|
---|
| 262 | --includedir=$TEXLIVE_PREFIX/include \
|
---|
| 263 | --infodir=$TEXLIVE_PREFIX/texmf-dist/doc/info \
|
---|
| 264 | --libdir=$TEXLIVE_PREFIX/lib \
|
---|
| 265 | --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \
|
---|
| 266 | --disable-native-texlive-build \
|
---|
| 267 | --disable-static --enable-shared \
|
---|
| 268 | --disable-dvisvgm \
|
---|
| 269 | --with-system-cairo \
|
---|
| 270 | --with-system-fontconfig \
|
---|
| 271 | --with-system-freetype2 \
|
---|
| 272 | --with-system-gmp \
|
---|
| 273 | --with-system-graphite2 \
|
---|
| 274 | --with-system-harfbuzz \
|
---|
| 275 | --with-system-icu \
|
---|
| 276 | --with-system-libgs \
|
---|
| 277 | --with-system-libpaper \
|
---|
| 278 | --with-system-libpng \
|
---|
| 279 | --with-system-mpfr \
|
---|
| 280 | --with-system-pixman \
|
---|
| 281 | --with-system-zlib \
|
---|
[eb38c8a] | 282 | --with-banner-add=" - BLFS" &&
|
---|
| 283 |
|
---|
[00a3154] | 284 | make</userinput></screen>
|
---|
[eb38c8a] | 285 |
|
---|
[fa3edfef] | 286 | <para>
|
---|
[7eaa163e] | 287 | To test the results, issue: <command>make -k check</command>.
|
---|
[9167f8d] | 288 | <!-- It started to fail with libpaper-2.0.10 which rounds differently
|
---|
| 289 | in the 6th place of decimals, causing diff to fail -->
|
---|
| 290 | Two tests, <filename>psutils.test</filename> and
|
---|
| 291 | <!-- Upstream say that encoding conversion procedure Encode::from_to()
|
---|
| 292 | failed in fn-generate.perl, test now skips if that errors: possibly
|
---|
| 293 | related to changes in perl-5.36 since I understand current slackware
|
---|
| 294 | also sees this - ken -->
|
---|
[e029a45] | 295 | <filename>eptexdir/wcfname</filename> are known to fail.
|
---|
[fa3edfef] | 296 | </para>
|
---|
[eb38c8a] | 297 |
|
---|
[fa3edfef] | 298 | <para>
|
---|
| 299 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 300 | </para>
|
---|
[eb38c8a] | 301 |
|
---|
[c74eb3a] | 302 | <!-- Editors, you can run 'make texlinks' in a DESTDIR by passing
|
---|
| 303 | DESTDIR#some/where -->
|
---|
[f594857] | 304 | <screen role="root"><userinput>make install-strip &&
|
---|
[ed3707e] | 305 | /sbin/ldconfig &&
|
---|
| 306 | make texlinks &&
|
---|
| 307 | mkdir -pv $TEXLIVE_PREFIX/tlpkg/TeXLive/ &&
|
---|
| 308 | install -v -m644 ../texk/tests/TeXLive/* $TEXLIVE_PREFIX/tlpkg/TeXLive/ &&
|
---|
| 309 | tar -xf ../../texlive-&tex-tlpdb-version;-tlpdb-full.tar.gz -C $TEXLIVE_PREFIX/tlpkg</userinput></screen>
|
---|
[eb38c8a] | 310 |
|
---|
[f594857] | 311 | <note>
|
---|
| 312 | <para>
|
---|
| 313 | Only run <command>make texlinks</command> once. If it is rerun,
|
---|
| 314 | it can change all the program symlinks so that they point to
|
---|
| 315 | themselves and are useless.
|
---|
| 316 | </para>
|
---|
| 317 | </note>
|
---|
| 318 |
|
---|
[fa3edfef] | 319 | <para>
|
---|
| 320 | Now install the additional files as the
|
---|
| 321 | <systemitem class="username">root</systemitem> user:
|
---|
| 322 | </para>
|
---|
[eb38c8a] | 323 |
|
---|
[4107ac91] | 324 | <!-- if texmf does not need to be patched, remove && from first line,
|
---|
| 325 | close userinput, screen, comment pushd, patch, popd -->
|
---|
[ed3707e] | 326 | <screen role="root"><userinput>tar -xf ../../texlive-&texmf-version;-texmf.tar.xz -C $TEXLIVE_PREFIX --strip-components=1</userinput></screen>
|
---|
[f594857] | 327 |
|
---|
[fa3edfef] | 328 | <para>
|
---|
| 329 | Still as the <systemitem class="username">root</systemitem> user,
|
---|
[9167f8d] | 330 | initialize the new system (the command <command>fmtutil-sys
|
---|
| 331 | --all</command> will produce
|
---|
[fa3edfef] | 332 | a <emphasis>lot</emphasis> of output):
|
---|
| 333 | </para>
|
---|
[382aa90c] | 334 |
|
---|
[f5c9139] | 335 | <!-- Editors, fmtutil-sys can apparently only be run on
|
---|
[c74eb3a] | 336 | a real install, as root. But mktexlsr can be run in a DESTDIR with
|
---|
| 337 | cd /YOUR/TEXMF/ROOT ; ls -LAR ./ >ls-R -->
|
---|
| 338 |
|
---|
[382aa90c] | 339 | <screen role="root"><userinput>mktexlsr &&
|
---|
[9167f8d] | 340 | fmtutil-sys --all</userinput></screen>
|
---|
[eb38c8a] | 341 |
|
---|
[2eac7f7] | 342 | <para>
|
---|
[6d28de3] | 343 | To allow <xref linkend="evince"/> or <xref linkend="dvisvgm"/> to
|
---|
| 344 | link to <filename class="libraryfile">libkpathsea.so</filename>,
|
---|
| 345 | as the &root; user (re)create a symlink from
|
---|
| 346 | <filename class="directory">/usr/lib</filename>:
|
---|
[2eac7f7] | 347 | </para>
|
---|
| 348 |
|
---|
| 349 | <screen role="root"><userinput>ln -svf $TEXLIVE_PREFIX/lib/libkpathsea.so /usr/lib</userinput></screen>
|
---|
| 350 |
|
---|
[a9b0c5e] | 351 | <note>
|
---|
| 352 | <!-- following based on fedora, but amended to run in the BLFS
|
---|
| 353 | layout, where adapting fedora's script for mtxrun did not
|
---|
| 354 | reliably work. ken -->
|
---|
| 355 | <para>
|
---|
| 356 | TeXLive includes some files for ConTeXt but the source of that is
|
---|
| 357 | separate and has moved on from using luatex in the previous 'mkiv'
|
---|
[67f75011] | 358 | version to using luametatex which can be pulled with git from <ulink
|
---|
| 359 | url="https://github.com/contextgarden/luametatex/tags">github luametatex</ulink>.
|
---|
| 360 | LuaMetaTeX uses meson and ninja, but it does not fit easily into
|
---|
[a9b0c5e] | 361 | the BLFS layout of TeXLive.
|
---|
[67f75011] | 362 | <!-- FIXME - when removing, keep that link to luametatex tags, and note
|
---|
| 363 | that building and installing that to fit with a BLFS install of TeXLive
|
---|
| 364 | will not be a trivial exercise.-->
|
---|
[a9b0c5e] | 365 | </para>
|
---|
| 366 | <para>
|
---|
| 367 | However, with a little extra work 'mkiv' files can still be processed
|
---|
| 368 | using the files shipped in texmf.
|
---|
| 369 | </para>
|
---|
[67f75011] | 370 |
|
---|
| 371 | <para>
|
---|
| 372 | <emphasis>Fixes to use ConTeXt will be removed when the texlive source next
|
---|
| 373 | has to be updated for either a vulnerability fix which requires backporting
|
---|
| 374 | luatex changes, or for TeXLive 2024. If you are a BLFS user of ConTeXt you
|
---|
[bb6a013a] | 375 | should be prepared to use the latest tag from github (the link is
|
---|
[67f75011] | 376 | in first paragraph of this Note). Building and installing that to work with
|
---|
[bb6a013a] | 377 | a BLFS install of TeXLive will not be a trivial exercise.</emphasis>
|
---|
[67f75011] | 378 | </para>
|
---|
[a9b0c5e] | 379 | </note>
|
---|
| 380 |
|
---|
| 381 | <para>
|
---|
| 382 | The following steps, run as the
|
---|
| 383 | <systemitem class="username">root</systemitem> user, will create
|
---|
[f5c9139] | 384 | <command>mtxrun</command> and <command>context</command>.
|
---|
[a9b0c5e] | 385 | </para>
|
---|
| 386 |
|
---|
| 387 | <!-- I've put blank lines in this to make it a little less hard to read. ken -->
|
---|
[9eed74c] | 388 | <screen role="root"><userinput>sed -e '/local template=\[\[--ini/s/\(primaryflags%\)\(.*\)/\1 --socket --shell-escape \2/' \
|
---|
| 389 | -e '/local template=\[\[%primaryflags%/s/\(primaryflags%\)\(.*\)/\1 --socket --shell-escape \2/' \
|
---|
| 390 | -i $TEXLIVE_PREFIX/texmf-dist/scripts/context/lua/mtxrun.lua &&
|
---|
| 391 |
|
---|
| 392 | mkdir -pv $TEXLIVE_PREFIX/texmf-var/luatex-cache/context/ &&
|
---|
[a9b0c5e] | 393 |
|
---|
| 394 | ln -sfv /$TEXLIVE_PREFIX/texmf-dist/scripts/context/lua/mtxrun.lua \
|
---|
| 395 | /$TEXLIVE_PREFIX/bin/$TEXARCH/mtxrun &&
|
---|
| 396 |
|
---|
| 397 | cat > $TEXLIVE_PREFIX/bin/$TEXARCH/context << EOF
|
---|
| 398 | #!/bin/sh
|
---|
| 399 | export TEXMF=$TEXLIVE_PREFIX/texmf-dist;
|
---|
| 400 | export TEXMFCNF=$TEXLIVE_PREFIX/texmf-dist/web2c;
|
---|
| 401 | export TEXMFCACHE=$TEXLIVE_PREFIX/texmf-var/luatex-cache/context/;
|
---|
| 402 | $TEXLIVE_PREFIX/bin/$TEXARCH/mtxrun --script context "\$@"
|
---|
| 403 | EOF
|
---|
[f5c9139] | 404 | chmod -v 0755 $TEXLIVE_PREFIX/bin/$TEXARCH/context</userinput></screen>
|
---|
[a9b0c5e] | 405 |
|
---|
[fa3edfef] | 406 | <para>
|
---|
| 407 | You can now proceed to <xref linkend="asymptote"/>,
|
---|
[26e8824] | 408 | <xref linkend="biber"/>, <xref linkend="dvisvgm"/> and / or <xref
|
---|
| 409 | linkend="xindy"/> if you wish to install them.
|
---|
[fa3edfef] | 410 | </para>
|
---|
[eb38c8a] | 411 |
|
---|
| 412 | </sect2>
|
---|
| 413 |
|
---|
| 414 | <sect2 role="commands">
|
---|
| 415 | <title>Command Explanations</title>
|
---|
| 416 |
|
---|
[9eed74c] | 417 | <para>
|
---|
| 418 | <command>patch -Np1 -i ../texlive-&texlive-version;-source-security_fix-1.patch</command>:
|
---|
| 419 | this updates the luatex source to v1.17.0 to fix security issues.
|
---|
| 420 | </para>
|
---|
| 421 |
|
---|
| 422 | <para>
|
---|
| 423 | <command>sed -e '/local template (...)' (...)mtxrun.lua</command>: this makes a
|
---|
| 424 | change in a texmf-dist script so that ConTeXt can now run with luatex-v1.17.0.
|
---|
| 425 | </para>
|
---|
| 426 |
|
---|
[067cb082] | 427 | <para>
|
---|
| 428 | <command>-C</command>: create config.cache, this saves significant
|
---|
| 429 | time in a parallel build.
|
---|
| 430 | </para>
|
---|
| 431 |
|
---|
[d7f0b08] | 432 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 433 | href="../../xincludes/tex-prefix.xml"/>
|
---|
[eb38c8a] | 434 |
|
---|
[d7f0b08] | 435 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 436 | href="../../xincludes/tex-lib.xml"/>
|
---|
[eb38c8a] | 437 |
|
---|
| 438 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 439 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 440 |
|
---|
[d7f0b08] | 441 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 442 | href="../../xincludes/tex-shared.xml"/>
|
---|
[eb38c8a] | 443 |
|
---|
[d7f0b08] | 444 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 445 | href="../../xincludes/tex-system.xml"/>
|
---|
[30be81d] | 446 | <!--
|
---|
[d7f0b08] | 447 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[30be81d] | 448 | href="../../xincludes/tex-xpdf.xml"/>-->
|
---|
[eb38c8a] | 449 |
|
---|
[06fd9a2] | 450 | <para>
|
---|
| 451 | <command>--disable-dvisvgm</command>: As noted above, the shipped version
|
---|
| 452 | of dvisvgm, which has modified configuration files, cannot be built with
|
---|
| 453 | shared system libraries.
|
---|
| 454 | </para>
|
---|
| 455 |
|
---|
[fbdfda1a] | 456 | <para>
|
---|
[fa3edfef] | 457 | <command>/sbin/ldconfig</command>: this has to be run here so that
|
---|
| 458 | <command>make texlinks</command> can use kpsewhich.
|
---|
[fbdfda1a] | 459 | </para>
|
---|
| 460 |
|
---|
[eb38c8a] | 461 | <para>
|
---|
[1a518e97] | 462 | <command>make texlinks</command> : this runs the texlinks.sh script
|
---|
[382aa90c] | 463 | to create symbolic links from formats to engines. In
|
---|
[eb38c8a] | 464 | practice, several of the targets such as <command>xetex</command> are now
|
---|
| 465 | separate binaries and for these it will report "file already exists".
|
---|
| 466 | </para>
|
---|
[f594857] | 467 |
|
---|
[eb38c8a] | 468 | <para>
|
---|
[ed3707e] | 469 | <command>tar -xf texlive-&texmf-version;-texmf.tar.xz -C $TEXLIVE_PREFIX --strip-components=1</command>:
|
---|
[eb38c8a] | 470 | the tarball contains the files for the texmf-dist directory, and because
|
---|
| 471 | of its size we do not want to waste time and space untarring it and then
|
---|
| 472 | copying the files.
|
---|
| 473 | </para>
|
---|
| 474 |
|
---|
[5e61060f] | 475 | <para>
|
---|
[1a518e97] | 476 | <command>install -v -m644 ../texk/tests/TeXLive/*
|
---|
[ed3707e] | 477 | $TEXLIVE_PREFIX/tlpkg/TeXLive/</command>: This puts the perl
|
---|
[f594857] | 478 | modules <filename>TLConfig.pm</filename> and <filename>TLUtils.pm</filename>
|
---|
| 479 | into the directory where the binary installer puts them - it is at the
|
---|
| 480 | start of the perl @INC@ PATH within texlive when installed using the above
|
---|
| 481 | configure switches. Without these modules, texlive is unusable.
|
---|
| 482 | </para>
|
---|
| 483 |
|
---|
| 484 | <para>
|
---|
[1a518e97] | 485 | <command>mktexlsr</command>: Create an <filename>ls-R</filename> file
|
---|
[f594857] | 486 | which lists what was installed - this is used by kpathsea to find files.
|
---|
| 487 | </para>
|
---|
| 488 |
|
---|
| 489 | <para>
|
---|
[17e976e3] | 490 | <command>fmtutil-sys --all</command>: This initializes the TeX formats,
|
---|
[f594857] | 491 | Metafont bases and Metapost mems.
|
---|
| 492 | </para>
|
---|
| 493 |
|
---|
[a9b0c5e] | 494 | <para>
|
---|
| 495 | <command>mkdir -pv $TEXLIVE_PREFIX/texmf-var/luatex-cache/context/</command>:
|
---|
| 496 | the context script created after this will not run correctly if this
|
---|
| 497 | directory is not present.
|
---|
| 498 | </para>
|
---|
| 499 |
|
---|
[e029a45] | 500 | <para>
|
---|
| 501 | <option>--without-x</option>: use this if you do not have Xorg installed.
|
---|
| 502 | </para>
|
---|
| 503 |
|
---|
| 504 | <para>
|
---|
| 505 | There are many other '--disable' or '--without' options. Some of them such
|
---|
| 506 | as <option>--without-texinfo</option> are accepted but no longer do anything,
|
---|
| 507 | others will prevent a program being built - but the far greater amount of
|
---|
| 508 | space used for the related items in texmf means there is no obvious benefit
|
---|
| 509 | from disabling a few of the programs.
|
---|
| 510 | </para>
|
---|
| 511 |
|
---|
[eb38c8a] | 512 | </sect2>
|
---|
| 513 |
|
---|
| 514 | <sect2 role="content">
|
---|
| 515 | <title>Contents</title>
|
---|
| 516 |
|
---|
| 517 | <segmentedlist>
|
---|
| 518 | <segtitle>Installed Programs</segtitle>
|
---|
| 519 | <segtitle>Installed Libraries</segtitle>
|
---|
| 520 | <segtitle>Installed Directories</segtitle>
|
---|
| 521 |
|
---|
| 522 | <seglistitem>
|
---|
| 523 | <seg>Over 300 binaries and symlinks to scripts</seg>
|
---|
[1fe05eb] | 524 | <seg>libkpathsea.so,
|
---|
| 525 | libptexenc.so,
|
---|
| 526 | libsynctex.so,
|
---|
[ed3707e] | 527 | libtexlua52.so,
|
---|
| 528 | libtexluajit.so
|
---|
| 529 | </seg>
|
---|
[1fe05eb] | 530 | <seg>$TEXLIVE_PREFIX/bin,
|
---|
[ed3707e] | 531 | $TEXLIVE_PREFIX/include,
|
---|
[1fe05eb] | 532 | $TEXLIVE_PREFIX/lib,
|
---|
[ed3707e] | 533 | $TEXLIVE_PREFIX/texmf-dist
|
---|
| 534 | </seg>
|
---|
[eb38c8a] | 535 | </seglistitem>
|
---|
| 536 | </segmentedlist>
|
---|
| 537 |
|
---|
| 538 | <variablelist>
|
---|
| 539 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 540 | <?dbfo list-presentation="list"?>
|
---|
| 541 | <?dbhtml list-presentation="table"?>
|
---|
| 542 |
|
---|
[347e59c] | 543 | <varlistentry id="texlive-programs">
|
---|
[eb38c8a] | 544 | <term><command>TeX programs</command></term>
|
---|
| 545 | <listitem>
|
---|
| 546 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 547 | href="../../xincludes/texprogs.xml"/>
|
---|
[347e59c] | 548 | <indexterm zone="texlive texlive-programs">
|
---|
| 549 | <primary sortas="b-texlive-programs">TeX Live programs</primary>
|
---|
[eb38c8a] | 550 | </indexterm>
|
---|
| 551 | </listitem>
|
---|
| 552 | </varlistentry>
|
---|
| 553 |
|
---|
[347e59c] | 554 | <varlistentry id="libkpathsea">
|
---|
[eb38c8a] | 555 | <term><filename class="libraryfile">libkpathsea.so</filename></term>
|
---|
| 556 | <listitem>
|
---|
| 557 | <para>
|
---|
[1e7ef03] | 558 | (kpathsearch) exists to look up a file in a list of directories
|
---|
[4c24eb0a] | 559 | and is used by <command>kpsewhich</command>
|
---|
[eb38c8a] | 560 | </para>
|
---|
[347e59c] | 561 | <indexterm zone="texlive libkpathsea">
|
---|
[eb38c8a] | 562 | <primary sortas="c-libkpathsea">libkpathsea.so</primary>
|
---|
| 563 | </indexterm>
|
---|
| 564 | </listitem>
|
---|
| 565 | </varlistentry>
|
---|
| 566 |
|
---|
[347e59c] | 567 | <varlistentry id="libptexenc">
|
---|
[eb38c8a] | 568 | <term><filename class="libraryfile">libptexenc.so</filename></term>
|
---|
| 569 | <listitem>
|
---|
| 570 | <para>
|
---|
[4c24eb0a] | 571 | is a library for Japanese pTeX (publishing TeX)
|
---|
[eb38c8a] | 572 | </para>
|
---|
[347e59c] | 573 | <indexterm zone="texlive libptexenc">
|
---|
[eb38c8a] | 574 | <primary sortas="c-libptexenc">libptexenc.so</primary>
|
---|
| 575 | </indexterm>
|
---|
| 576 | </listitem>
|
---|
| 577 | </varlistentry>
|
---|
[f594857] | 578 |
|
---|
| 579 | <varlistentry id="libsynctex">
|
---|
| 580 | <term><filename class="libraryfile">libsynctex.so</filename></term>
|
---|
| 581 | <listitem>
|
---|
| 582 | <para>
|
---|
[4c24eb0a] | 583 | is the SyncTeX (Synchronize TeXnology) parser library
|
---|
[f594857] | 584 | </para>
|
---|
| 585 | <indexterm zone="texlive libsynctex">
|
---|
| 586 | <primary sortas="c-libsynctex">libsynctex.so</primary>
|
---|
| 587 | </indexterm>
|
---|
| 588 | </listitem>
|
---|
| 589 | </varlistentry>
|
---|
| 590 |
|
---|
| 591 | <varlistentry id="libtexlua52">
|
---|
| 592 | <term><filename class="libraryfile">libtexlua52.so</filename></term>
|
---|
| 593 | <listitem>
|
---|
| 594 | <para>
|
---|
[4c24eb0a] | 595 | provides Lua 5.2, modified for use with LuaTeX
|
---|
[f594857] | 596 | </para>
|
---|
| 597 | <indexterm zone="texlive libtexlua52">
|
---|
| 598 | <primary sortas="c-libtexlua52">libtexlua52.so</primary>
|
---|
| 599 | </indexterm>
|
---|
| 600 | </listitem>
|
---|
| 601 | </varlistentry>
|
---|
| 602 |
|
---|
| 603 | <varlistentry id="libtexluajit">
|
---|
| 604 | <term><filename class="libraryfile">libtexluajit.so</filename></term>
|
---|
| 605 | <listitem>
|
---|
| 606 | <para>
|
---|
[4c24eb0a] | 607 | provides LuaJIT, modified for use with LuaJITTeX
|
---|
[f594857] | 608 | </para>
|
---|
| 609 | <indexterm zone="texlive libtexluajit">
|
---|
| 610 | <primary sortas="c-libtexluajit">libtexluajit.so</primary>
|
---|
| 611 | </indexterm>
|
---|
| 612 | </listitem>
|
---|
| 613 | </varlistentry>
|
---|
[eb38c8a] | 614 | </variablelist>
|
---|
| 615 |
|
---|
| 616 | </sect2>
|
---|
| 617 |
|
---|
| 618 | </sect1>
|
---|