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