[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>
|
---|
[d7f0b08] | 78 |
|
---|
| 79 | <!-- text for recommended libraries, shared with pass 1 -->
|
---|
| 80 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 81 | href="../../xincludes/texrecommendlibs.xml"/>
|
---|
[45d9840] | 82 |
|
---|
[ec44474] | 83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[d7f0b08] | 84 | <!-- text for optional deps, shared with pass 1 -->
|
---|
| 85 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 86 | href="../../xincludes/texoptional.xml"/>
|
---|
| 87 |
|
---|
[45d9840] | 88 |
|
---|
[ec44474] | 89 | <bridgehead renderas="sect4">Runtime dependencies</bridgehead>
|
---|
[d7f0b08] | 90 | <!-- text for runtime deps, shared with tl-installer and pass 1 -->
|
---|
| 91 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 92 | href="../../xincludes/texruntime.xml"/>
|
---|
[f1e103a] | 93 |
|
---|
| 94 | <para condition="html" role="usernotes">User Notes:
|
---|
| 95 | <ulink url="&blfs-wiki;/texlive"/></para>
|
---|
| 96 |
|
---|
| 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 role="installation">
|
---|
| 100 | <title>Installation of TeX Live</title>
|
---|
| 101 |
|
---|
[eb38c8a] | 102 | <para>If you started with the binary installer, these instructions will
|
---|
| 103 | overwrite the programs it installed.</para>
|
---|
[45d9840] | 104 |
|
---|
[d7f0b08] | 105 | <!-- the first part of this is the same as in texlive pass 1 -->
|
---|
[eb38c8a] | 106 | <screen role="root"><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &&
|
---|
| 107 | mkdir texlive-build &&
|
---|
[45d9840] | 108 | cd texlive-build &&
|
---|
| 109 |
|
---|
[d943aa7] | 110 | ../configure \
|
---|
[666e811] | 111 | --prefix=/opt/texlive/&texlive-year; \
|
---|
[eb38c8a] | 112 | --bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \
|
---|
[666e811] | 113 | --datarootdir=/opt/texlive/&texlive-year; \
|
---|
[d943aa7] | 114 | --includedir=/usr/include \
|
---|
[666e811] | 115 | --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
|
---|
[d943aa7] | 116 | --libdir=/usr/lib \
|
---|
[666e811] | 117 | --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
|
---|
[d943aa7] | 118 | --disable-native-texlive-build \
|
---|
| 119 | --disable-static --enable-shared \
|
---|
[fabc9f3] | 120 | --with-system-cairo \
|
---|
[d943aa7] | 121 | --with-system-fontconfig \
|
---|
[fabc9f3] | 122 | --with-system-freetype2 \
|
---|
[d943aa7] | 123 | --with-system-graphite2 \
|
---|
| 124 | --with-system-harfbuzz \
|
---|
[fabc9f3] | 125 | --with-system-icu \
|
---|
| 126 | --with-system-libgs \
|
---|
| 127 | --with-system-libpng \
|
---|
[d943aa7] | 128 | --with-system-pixman \
|
---|
[fabc9f3] | 129 | --with-system-poppler \
|
---|
| 130 | --with-system-xpdf \
|
---|
[d943aa7] | 131 | --with-system-zlib \
|
---|
[d77f4cd] | 132 | --with-banner-add=" - BLFS" \
|
---|
| 133 | --enable-xindy \
|
---|
| 134 | --enable-xindy-rules \
|
---|
| 135 | --enable-xindy-doc \
|
---|
| 136 | --with-clisp-runtime=system</userinput></screen>
|
---|
[5cc86d0] | 137 |
|
---|
| 138 | <para>Asymptote has to be separately configured. It ships with its own copy
|
---|
| 139 | of the gc source tarball, and will only use the system version if that local
|
---|
| 140 | source is removed.
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
| 143 | <screen><userinput>pushd ../utils/asymptote &&
|
---|
[d77f4cd] | 144 | rm -v gc-7.4.0.tar.gz &&
|
---|
[45d9840] | 145 |
|
---|
[d77f4cd] | 146 | echo "ac_cv_lib_m_sqrt=yes" >config.cache &&
|
---|
| 147 | echo "ac_cv_lib_z_deflate=yes" >>config.cache &&
|
---|
[d943aa7] | 148 |
|
---|
| 149 | ./configure LIBS="-ltirpc " \
|
---|
[666e811] | 150 | --prefix=/opt/texlive/&texlive-year;/ \
|
---|
[eb38c8a] | 151 | --bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \
|
---|
[d943aa7] | 152 | --enable-texlive-build \
|
---|
[666e811] | 153 | --datarootdir=/opt/texlive/&texlive-year;/texmf-dist \
|
---|
| 154 | --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
|
---|
| 155 | --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
|
---|
[eb38c8a] | 156 | --cache-file=config.cache && &&
|
---|
[4ba02e6c] | 157 | popd &&
|
---|
[eb38c8a] | 158 | unset TEXARCH &&
|
---|
[4ba02e6c] | 159 |
|
---|
| 160 | make &&
|
---|
| 161 | make -C ../utils/asymptote</userinput></screen>
|
---|
| 162 |
|
---|
[dde762b3] | 163 | <para>To test the results, issue: <command>make -k check &&
|
---|
| 164 | make -C utils/asymptote check</command>.</para>
|
---|
[f1e103a] | 165 |
|
---|
[eb38c8a] | 166 | <para>If you have used the binary installer, you will want to
|
---|
| 167 | do a full install. As the <systemitem class="username">root</systemitem>
|
---|
[45d9840] | 168 | user:</para>
|
---|
[d40e1a4] | 169 |
|
---|
[eb38c8a] | 170 | <screen><userinput role="nodump">make install &&
|
---|
| 171 | make -C ../utils/asymptote install</userinput></screen>
|
---|
| 172 |
|
---|
| 173 | <para>For people who have followed the LFS way and built from source,
|
---|
| 174 | it is only necessary to install <application>xindy</application> and
|
---|
| 175 | <application>asy</application>, so, as the
|
---|
| 176 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 177 |
|
---|
| 178 | <screen><userinput role="root">make -C utils/xindy install &&
|
---|
[4ba02e6c] | 179 | make -C ../utils/asymptote install</userinput></screen>
|
---|
[f1e103a] | 180 |
|
---|
[a9ee0599] | 181 | <para>One part of the package remains to be rebuilt:
|
---|
| 182 | <xref linkend="biber"/>.</para>
|
---|
| 183 |
|
---|
[45d9840] | 184 | </sect2>
|
---|
[f1e103a] | 185 |
|
---|
[45d9840] | 186 | <sect2 role="commands">
|
---|
| 187 | <title>Command Explanations</title>
|
---|
[f1e103a] | 188 |
|
---|
[d7f0b08] | 189 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 190 | href="../../xincludes/tex-prefix.xml"/>
|
---|
[f1e103a] | 191 |
|
---|
[d7f0b08] | 192 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 193 | href="../../xincludes/tex-lib.xml"/>
|
---|
[f1e103a] | 194 |
|
---|
[45d9840] | 195 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 196 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 197 |
|
---|
[d7f0b08] | 198 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 199 | href="../../xincludes/tex-shared.xml"/>
|
---|
[f1e103a] | 200 |
|
---|
[d7f0b08] | 201 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 202 | href="../../xincludes/tex-system.xml"/>
|
---|
[f1e103a] | 203 |
|
---|
[d7f0b08] | 204 | <!-- <para>
|
---|
| 205 | <parameter>\-\-with-system-xpdf</parameter>: Uniquely, this parameter has
|
---|
[45d9840] | 206 | a non-standard meaning, it tells <command>configure</command> to use the
|
---|
| 207 | system-installed <application>poppler</application> headers and library.
|
---|
| 208 | Again, omit this if you have not installed
|
---|
| 209 | <application>poppler</application>.
|
---|
[d7f0b08] | 210 | </para> -->
|
---|
| 211 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 212 | href="../../xincludes/tex-xpdf.xml"/>
|
---|
[45d9840] | 213 |
|
---|
| 214 | <para>
|
---|
[4ba02e6c] | 215 | <parameter>echo "ac_cv_lib_m_sqrt=yes" ... LIBS="-ltirpc " >config.cache,
|
---|
| 216 | ... --cache-file=config.cache</parameter> : The configure scripts in
|
---|
| 217 | <application>TeX Live</application> are uncommon. Asymptote not only has to
|
---|
| 218 | be separately configured and built, the configure script fails to find the
|
---|
| 219 | shared <filename class="libraryfile">libtirpc.so</filename>. Passing that
|
---|
| 220 | in LIBS breaks the tests for (static) libm and (shared) libz, so we have to
|
---|
| 221 | fix things up, in much the same way as when cross-compiling.
|
---|
| 222 | </para>
|
---|
| 223 |
|
---|
| 224 | <para>
|
---|
| 225 | <option>--without-x</option>: use this (and omit the configure and make in
|
---|
| 226 | <filename>utils/asymptote</filename> if you do not have Xorg installed.
|
---|
[45d9840] | 227 | </para>
|
---|
[f1e103a] | 228 |
|
---|
| 229 | </sect2>
|
---|
| 230 |
|
---|
| 231 | <sect2 role="content">
|
---|
| 232 | <title>Contents</title>
|
---|
| 233 |
|
---|
| 234 | <segmentedlist>
|
---|
| 235 | <segtitle>Installed Programs</segtitle>
|
---|
| 236 | <segtitle>Installed Libraries</segtitle>
|
---|
| 237 | <segtitle>Installed Directories</segtitle>
|
---|
| 238 |
|
---|
| 239 | <seglistitem>
|
---|
| 240 | <seg>Over 300 binaries and symlinks to scripts</seg>
|
---|
[ba0ddeda] | 241 | <seg>libkpathsea.so, libptexenc.so</seg>
|
---|
| 242 | <seg>/opt/texlive, /usr/include/kpathsea, /usr/include/ptexenc</seg>
|
---|
[f1e103a] | 243 | </seglistitem>
|
---|
| 244 | </segmentedlist>
|
---|
| 245 |
|
---|
| 246 | <variablelist>
|
---|
| 247 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 248 | <?dbfo list-presentation="list"?>
|
---|
| 249 | <?dbhtml list-presentation="table"?>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="texlive-programs">
|
---|
[9f35d02] | 252 | <term><command>TeX programs</command></term>
|
---|
[f1e103a] | 253 | <listitem>
|
---|
[666e811] | 254 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 255 | href="../../xincludes/texprogs.xml"/>
|
---|
[f1e103a] | 256 | <indexterm zone="texlive texlive-programs">
|
---|
| 257 | <primary sortas="b-texlive-programs">TeX Live programs</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
[ba0ddeda] | 261 |
|
---|
| 262 | <varlistentry id="libkpathsea">
|
---|
| 263 | <term><filename class="libraryfile">libkpathsea.so</filename></term>
|
---|
| 264 | <listitem>
|
---|
| 265 | <para>
|
---|
| 266 | (kpathsearch) exists to look up a file in a list of directories.
|
---|
| 267 | </para>
|
---|
| 268 | <indexterm zone="texlive libkpathsea">
|
---|
| 269 | <primary sortas="c-libkpathsea">libkpathsea.so</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
| 274 | <varlistentry id="libptexenc">
|
---|
| 275 | <term><filename class="libraryfile">libptexenc.so</filename></term>
|
---|
| 276 | <listitem>
|
---|
| 277 | <para>
|
---|
| 278 | is a library for Japanese pTeX (publishing TeX).
|
---|
| 279 | </para>
|
---|
| 280 | <indexterm zone="texlive libptexenc">
|
---|
| 281 | <primary sortas="c-libptexenc">libptexenc.so</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
[f1e103a] | 285 | </variablelist>
|
---|
| 286 |
|
---|
| 287 | </sect2>
|
---|
| 288 |
|
---|
| 289 | </sect1>
|
---|