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