[f1e103a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 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 texlive-source-download-http " ">
|
---|
[aa22ad7] | 8 | <!ENTITY texlive-source-download-ftp "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&texlive-version;-source.tar.xz">
|
---|
[666e811] | 9 | <!ENTITY texlive-source-md5sum "09ee265ff51637827559affc7304078c">
|
---|
| 10 | <!ENTITY texlive-source-size "40 MB">
|
---|
[66479be] | 11 |
|
---|
[666e811] | 12 | <!-- buildsize is the source dir, plus the kpathsea files installed to /usr.
|
---|
[ec10720] | 13 | The progs in bin/$TEXARCH/ seem slightly smaller (shared libs) -->
|
---|
[666e811] | 14 | <!ENTITY texlive-buildsize "555 MB">
|
---|
| 15 | <!ENTITY texlive-time "8.4 SBU">
|
---|
[f1e103a] | 16 | ]>
|
---|
| 17 |
|
---|
[a027d7d3] | 18 | <sect1 id="texlive" xreflabel="texlive-&texlive-version;">
|
---|
[f1e103a] | 19 | <?dbhtml filename="texlive.html"?>
|
---|
| 20 |
|
---|
| 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
| 23 | <date>$Date$</date>
|
---|
| 24 | </sect1info>
|
---|
| 25 |
|
---|
[a027d7d3] | 26 | <title>texlive-&texlive-version;</title>
|
---|
[f1e103a] | 27 |
|
---|
| 28 | <indexterm zone="texlive">
|
---|
| 29 | <primary sortas="a-texlive">texlive</primary>
|
---|
| 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
[ec44474] | 33 | <title>Introduction to TeX Live from source</title>
|
---|
[f1e103a] | 34 |
|
---|
[ec44474] | 35 | <para>A binary version of the <application>TeX Live</application> package
|
---|
| 36 | is installed at <xref linkend="tl-installer"/>. Here, we use that to rebuild
|
---|
| 37 | the compiled programs from source.</para>
|
---|
[0d7900a] | 38 |
|
---|
[3ff910b] | 39 | &lfs76_checked;
|
---|
[7b74537e] | 40 |
|
---|
[f1e103a] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (HTTP): <ulink url="&texlive-source-download-http;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download (FTP): <ulink url="&texlive-source-download-ftp;"/></para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download MD5 sum: &texlive-source-md5sum;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download size: &texlive-source-size;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated disk space required: &texlive-buildsize;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Estimated build time: &texlive-time;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | </itemizedlist>
|
---|
| 62 |
|
---|
| 63 | <bridgehead renderas="sect3">TeX Live Dependencies</bridgehead>
|
---|
[9f35d02] | 64 |
|
---|
[666e811] | 65 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 66 | <para role="required">
|
---|
| 67 | <xref linkend="tl-installer"/> or a previous version of TeX Live
|
---|
| 68 | (untested, you would need to alter the configure switches which refer
|
---|
| 69 | to &texlive-year; so that it overwrites your existing installation, or
|
---|
[d77f4cd] | 70 | else copy everything to the location for the current year), and
|
---|
| 71 | <xref linkend="clisp"/> (to build <command>xindy</command> which is an
|
---|
| 72 | index processor for multi-lingual index creation)
|
---|
[666e811] | 73 | </para>
|
---|
| 74 |
|
---|
[ec44474] | 75 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[45d9840] | 76 | <para role="recommended">
|
---|
[d77f4cd] | 77 | <xref linkend="gs"/> (for dvisvgm - used by asymptote which provides a
|
---|
| 78 | mathematical coordinate-based framework for technical drawing),
|
---|
[ec44474] | 79 | <xref linkend="x-window-system"/>
|
---|
| 80 | </para>
|
---|
[f9f759de] | 81 | <para role="recommended">
|
---|
[45d9840] | 82 | The source ships with its own versions of <emphasis>many</emphasis>
|
---|
| 83 | libraries, and will use them unless it is forced to use the system
|
---|
[ec44474] | 84 | versions. The following are recommended so that the system version
|
---|
| 85 | will be used:
|
---|
[9f35d02] | 86 | <xref linkend="fontconfig"/>,
|
---|
[5cc86d0] | 87 | <xref linkend="freetype2"/>,
|
---|
| 88 | <xref linkend="gc"/>,
|
---|
[45d9840] | 89 | <xref linkend="graphite2"/>,
|
---|
| 90 | <xref linkend="harfbuzz"/> (linked to graphite2),
|
---|
[5cc86d0] | 91 | <xref linkend="icu"/>,
|
---|
[1ecdb18] | 92 | <xref linkend="libpaper"/>,
|
---|
[9f35d02] | 93 | <xref linkend="libpng"/>,
|
---|
[ec44474] | 94 | <xref linkend="poppler"/>
|
---|
[45d9840] | 95 | </para>
|
---|
| 96 |
|
---|
[ec44474] | 97 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[f9f759de] | 98 | <para role="optional">
|
---|
[ec44474] | 99 | The source ships with its own versions of several libraries which are either
|
---|
[45d9840] | 100 | not under active development, or only used for limited functionality. If
|
---|
| 101 | you install these, as with some other optional dependencies in this book you
|
---|
| 102 | will need to tell <command>configure</command> to use the system versions.
|
---|
[a754ee2b] | 103 | <ulink url="http://libgd.bitbucket.org">GD</ulink>,
|
---|
| 104 | <ulink url="http://fossies.org/linux/misc/t1lib-5.1.2.tar.gz/">t1lib</ulink>,
|
---|
[9f35d02] | 105 | <ulink url="http://sourceforge.net/projects/zziplib/">ZZIPlib</ulink>,
|
---|
[45d9840] | 106 | <ulink url="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=TECkitDownloads">TECkit</ulink>
|
---|
| 107 | </para>
|
---|
| 108 |
|
---|
[ec44474] | 109 | <bridgehead renderas="sect4">Runtime dependencies</bridgehead>
|
---|
[45d9840] | 110 | <para role="recommended">
|
---|
[ec44474] | 111 | Some (re-installed) scripts will use
|
---|
[666e811] | 112 | <xref linkend="python2"/> or <xref linkend="ruby"/>.
|
---|
[2a75b9b] | 113 | </para>
|
---|
[f1e103a] | 114 |
|
---|
| 115 | <para condition="html" role="usernotes">User Notes:
|
---|
| 116 | <ulink url="&blfs-wiki;/texlive"/></para>
|
---|
| 117 |
|
---|
| 118 | </sect2>
|
---|
| 119 |
|
---|
| 120 | <sect2 role="installation">
|
---|
| 121 | <title>Installation of TeX Live</title>
|
---|
| 122 |
|
---|
[ec44474] | 123 | <para>These instructions will overwrite the corresponding files from the
|
---|
| 124 | binary installer. As with the installer, change x86_64-linux to whatever
|
---|
| 125 | matches your architecture.</para>
|
---|
[45d9840] | 126 |
|
---|
| 127 | <para>Please note that installing from source will recompile the binary
|
---|
| 128 | programs and recreate the <literal>man</literal> and <literal>info</literal>
|
---|
| 129 | files. It will also overwrite the scripts - some of these may be older
|
---|
| 130 | versions than those from the newer installer. It will <emphasis>not</emphasis>
|
---|
| 131 | recreate any of the following: the more than 200 symlinks in the
|
---|
[ec44474] | 132 | x86_64-linux directory (some are alternate names, many are pointers to
|
---|
[45d9840] | 133 | the scripts), html files, PDF files, licenses, README files, two config
|
---|
| 134 | files (<filename>texmf.cnf</filename> and <filename>texmfcnf.lua</filename>),
|
---|
| 135 | nor the many package and font files in
|
---|
| 136 | <filename class="directory">texmf-dist</filename> and
|
---|
| 137 | <filename class="directory">texmf-var</filename>, nor the files recording
|
---|
| 138 | the actions of the installer, and the <filename>ls-R</filename> files listing
|
---|
| 139 | what was originally installed.</para>
|
---|
| 140 |
|
---|
[a9ee0599] | 141 | <para>Asy and the rest of asymptote is by default not rebuilt, so we have to
|
---|
[666e811] | 142 | separately run <command>configure</command> and <command>make</command> in its
|
---|
| 143 | directory.
|
---|
[4ba02e6c] | 144 | </para>
|
---|
[45d9840] | 145 |
|
---|
[666e811] | 146 | <screen><userinput>mkdir texlive-build &&
|
---|
[45d9840] | 147 | cd texlive-build &&
|
---|
| 148 |
|
---|
[d943aa7] | 149 | ../configure \
|
---|
[666e811] | 150 | --prefix=/opt/texlive/&texlive-year; \
|
---|
| 151 | --bindir=/opt/texlive/&texlive-year;/bin/x86_64-linux \
|
---|
| 152 | --datarootdir=/opt/texlive/&texlive-year; \
|
---|
[d943aa7] | 153 | --includedir=/usr/include \
|
---|
[666e811] | 154 | --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
|
---|
[d943aa7] | 155 | --libdir=/usr/lib \
|
---|
[666e811] | 156 | --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
|
---|
[d943aa7] | 157 | --disable-native-texlive-build \
|
---|
| 158 | --disable-static --enable-shared \
|
---|
[fabc9f3] | 159 | --with-system-cairo \
|
---|
[d943aa7] | 160 | --with-system-fontconfig \
|
---|
[fabc9f3] | 161 | --with-system-freetype2 \
|
---|
[d943aa7] | 162 | --with-system-graphite2 \
|
---|
| 163 | --with-system-harfbuzz \
|
---|
[fabc9f3] | 164 | --with-system-icu \
|
---|
| 165 | --with-system-libgs \
|
---|
| 166 | --with-system-libpng \
|
---|
[d943aa7] | 167 | --with-system-pixman \
|
---|
[fabc9f3] | 168 | --with-system-poppler \
|
---|
| 169 | --with-system-xpdf \
|
---|
[d943aa7] | 170 | --with-system-zlib \
|
---|
[d77f4cd] | 171 | --with-banner-add=" - BLFS" \
|
---|
| 172 | --enable-xindy \
|
---|
| 173 | --enable-xindy-rules \
|
---|
| 174 | --enable-xindy-doc \
|
---|
| 175 | --with-clisp-runtime=system</userinput></screen>
|
---|
[5cc86d0] | 176 |
|
---|
| 177 | <para>Asymptote has to be separately configured. It ships with its own copy
|
---|
| 178 | of the gc source tarball, and will only use the system version if that local
|
---|
| 179 | source is removed.
|
---|
| 180 | </para>
|
---|
| 181 |
|
---|
| 182 | <screen><userinput>pushd ../utils/asymptote &&
|
---|
[d77f4cd] | 183 | rm -v gc-7.4.0.tar.gz &&
|
---|
[45d9840] | 184 |
|
---|
[d77f4cd] | 185 | echo "ac_cv_lib_m_sqrt=yes" >config.cache &&
|
---|
| 186 | echo "ac_cv_lib_z_deflate=yes" >>config.cache &&
|
---|
[d943aa7] | 187 |
|
---|
| 188 | ./configure LIBS="-ltirpc " \
|
---|
[666e811] | 189 | --prefix=/opt/texlive/&texlive-year;/ \
|
---|
| 190 | --bindir=/opt/texlive/&texlive-year;/bin/x86_64-linux \
|
---|
[d943aa7] | 191 | --enable-texlive-build \
|
---|
[666e811] | 192 | --datarootdir=/opt/texlive/&texlive-year;/texmf-dist \
|
---|
| 193 | --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
|
---|
| 194 | --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
|
---|
[d943aa7] | 195 | --cache-file=config.cache &&
|
---|
[4ba02e6c] | 196 | popd &&
|
---|
| 197 |
|
---|
| 198 | make &&
|
---|
| 199 | make -C ../utils/asymptote</userinput></screen>
|
---|
| 200 |
|
---|
[dde762b3] | 201 | <para>To test the results, issue: <command>make -k check &&
|
---|
| 202 | make -C utils/asymptote check</command>.</para>
|
---|
[f1e103a] | 203 |
|
---|
[45d9840] | 204 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 205 | user:</para>
|
---|
[d40e1a4] | 206 |
|
---|
[4ba02e6c] | 207 | <screen><userinput role="root">make install &&
|
---|
| 208 | make -C ../utils/asymptote install</userinput></screen>
|
---|
[f1e103a] | 209 |
|
---|
[a9ee0599] | 210 | <para>One part of the package remains to be rebuilt:
|
---|
| 211 | <xref linkend="biber"/>.</para>
|
---|
| 212 |
|
---|
[45d9840] | 213 | </sect2>
|
---|
[f1e103a] | 214 |
|
---|
[45d9840] | 215 | <sect2 role="commands">
|
---|
| 216 | <title>Command Explanations</title>
|
---|
[f1e103a] | 217 |
|
---|
[45d9840] | 218 | <para>
|
---|
| 219 | <parameter>--prefix=, --bindir=, --datarootdir=, --infodir=, --mandir= ...
|
---|
| 220 | </parameter>: these switches ensure that the files installed from source
|
---|
| 221 | will overwrite the corresponding files previously installed by
|
---|
| 222 | <application>install-tl</application>.
|
---|
| 223 | </para>
|
---|
[f1e103a] | 224 |
|
---|
[45d9840] | 225 | <para>
|
---|
| 226 | <parameter>--includedir=, --libdir= ...</parameter> : these switches ensure
|
---|
| 227 | that the libraries will be found at runtime, and that programs can be
|
---|
| 228 | compiled against them.
|
---|
| 229 | </para>
|
---|
[f1e103a] | 230 |
|
---|
[45d9840] | 231 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 232 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 233 |
|
---|
| 234 | <para>
|
---|
| 235 | <parameter>--enable-shared</parameter>: Use shared versions of
|
---|
| 236 | <filename class="libraryfile">libkpathsea</filename> and
|
---|
| 237 | <filename class="libraryfile">libptexenc</filename>.
|
---|
| 238 | </para>
|
---|
[f1e103a] | 239 |
|
---|
[45d9840] | 240 | <para>
|
---|
| 241 | <parameter>--with-system-...</parameter>: Unless this parameter is used,
|
---|
| 242 | the included versions of these libraries will be statically compiled
|
---|
| 243 | into the programs which need them. If you decided not to install a
|
---|
| 244 | recommended library, omit the corresponding switches.
|
---|
| 245 | </para>
|
---|
[f1e103a] | 246 |
|
---|
[45d9840] | 247 | <para>
|
---|
| 248 | <parameter>--with-system-xpdf</parameter>: Uniquely, this parameter has
|
---|
| 249 | a non-standard meaning, it tells <command>configure</command> to use the
|
---|
| 250 | system-installed <application>poppler</application> headers and library.
|
---|
| 251 | Again, omit this if you have not installed
|
---|
| 252 | <application>poppler</application>.
|
---|
| 253 | </para>
|
---|
| 254 |
|
---|
| 255 | <para>
|
---|
[4ba02e6c] | 256 | <parameter>echo "ac_cv_lib_m_sqrt=yes" ... LIBS="-ltirpc " >config.cache,
|
---|
| 257 | ... --cache-file=config.cache</parameter> : The configure scripts in
|
---|
| 258 | <application>TeX Live</application> are uncommon. Asymptote not only has to
|
---|
| 259 | be separately configured and built, the configure script fails to find the
|
---|
| 260 | shared <filename class="libraryfile">libtirpc.so</filename>. Passing that
|
---|
| 261 | in LIBS breaks the tests for (static) libm and (shared) libz, so we have to
|
---|
| 262 | fix things up, in much the same way as when cross-compiling.
|
---|
| 263 | </para>
|
---|
| 264 |
|
---|
| 265 | <para>
|
---|
| 266 | <option>--without-x</option>: use this (and omit the configure and make in
|
---|
| 267 | <filename>utils/asymptote</filename> if you do not have Xorg installed.
|
---|
[45d9840] | 268 | </para>
|
---|
[f1e103a] | 269 |
|
---|
| 270 | </sect2>
|
---|
| 271 |
|
---|
| 272 | <sect2 role="content">
|
---|
| 273 | <title>Contents</title>
|
---|
| 274 |
|
---|
| 275 | <segmentedlist>
|
---|
| 276 | <segtitle>Installed Programs</segtitle>
|
---|
| 277 | <segtitle>Installed Libraries</segtitle>
|
---|
| 278 | <segtitle>Installed Directories</segtitle>
|
---|
| 279 |
|
---|
| 280 | <seglistitem>
|
---|
| 281 | <seg>Over 300 binaries and symlinks to scripts</seg>
|
---|
[ba0ddeda] | 282 | <seg>libkpathsea.so, libptexenc.so</seg>
|
---|
| 283 | <seg>/opt/texlive, /usr/include/kpathsea, /usr/include/ptexenc</seg>
|
---|
[f1e103a] | 284 | </seglistitem>
|
---|
| 285 | </segmentedlist>
|
---|
| 286 |
|
---|
| 287 | <variablelist>
|
---|
| 288 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 289 | <?dbfo list-presentation="list"?>
|
---|
| 290 | <?dbhtml list-presentation="table"?>
|
---|
| 291 |
|
---|
| 292 | <varlistentry id="texlive-programs">
|
---|
[9f35d02] | 293 | <term><command>TeX programs</command></term>
|
---|
[f1e103a] | 294 | <listitem>
|
---|
[666e811] | 295 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 296 | href="../../xincludes/texprogs.xml"/>
|
---|
[f1e103a] | 297 | <indexterm zone="texlive texlive-programs">
|
---|
| 298 | <primary sortas="b-texlive-programs">TeX Live programs</primary>
|
---|
| 299 | </indexterm>
|
---|
| 300 | </listitem>
|
---|
| 301 | </varlistentry>
|
---|
[ba0ddeda] | 302 |
|
---|
| 303 | <varlistentry id="libkpathsea">
|
---|
| 304 | <term><filename class="libraryfile">libkpathsea.so</filename></term>
|
---|
| 305 | <listitem>
|
---|
| 306 | <para>
|
---|
| 307 | (kpathsearch) exists to look up a file in a list of directories.
|
---|
| 308 | </para>
|
---|
| 309 | <indexterm zone="texlive libkpathsea">
|
---|
| 310 | <primary sortas="c-libkpathsea">libkpathsea.so</primary>
|
---|
| 311 | </indexterm>
|
---|
| 312 | </listitem>
|
---|
| 313 | </varlistentry>
|
---|
| 314 |
|
---|
| 315 | <varlistentry id="libptexenc">
|
---|
| 316 | <term><filename class="libraryfile">libptexenc.so</filename></term>
|
---|
| 317 | <listitem>
|
---|
| 318 | <para>
|
---|
| 319 | is a library for Japanese pTeX (publishing TeX).
|
---|
| 320 | </para>
|
---|
| 321 | <indexterm zone="texlive libptexenc">
|
---|
| 322 | <primary sortas="c-libptexenc">libptexenc.so</primary>
|
---|
| 323 | </indexterm>
|
---|
| 324 | </listitem>
|
---|
| 325 | </varlistentry>
|
---|
[f1e103a] | 326 | </variablelist>
|
---|
| 327 |
|
---|
| 328 | </sect2>
|
---|
| 329 |
|
---|
| 330 | </sect1>
|
---|