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