2011-01-18 08:13:43 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2013-08-01 03:27:37 +08:00
|
|
|
<!ENTITY texlive-year "2013">
|
2011-12-05 13:42:37 +08:00
|
|
|
<!ENTITY texlive-installer "http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz">
|
|
|
|
|
2011-01-18 08:13:43 +08:00
|
|
|
<!ENTITY texlive-source-download-http " ">
|
2012-08-29 03:56:32 +08:00
|
|
|
<!ENTITY texlive-source-download-ftp "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&texlive-version;-source.tar.xz">
|
2013-08-01 03:27:37 +08:00
|
|
|
<!ENTITY texlive-source-md5sum "f52599c99fb1035399b907f4c54f1125">
|
|
|
|
<!ENTITY texlive-source-size "172 MB">
|
|
|
|
|
|
|
|
<!ENTITY texlive-buildsize "1.6 GB">
|
|
|
|
<!ENTITY texlive-time "9.6 SBU">
|
2011-01-18 08:13:43 +08:00
|
|
|
]>
|
|
|
|
|
2012-04-18 13:18:11 +08:00
|
|
|
<sect1 id="texlive" xreflabel="texlive-&texlive-version;">
|
2011-01-18 08:13:43 +08:00
|
|
|
<?dbhtml filename="texlive.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
2012-04-18 13:18:11 +08:00
|
|
|
<title>texlive-&texlive-version;</title>
|
2011-01-18 08:13:43 +08:00
|
|
|
|
|
|
|
<indexterm zone="texlive">
|
|
|
|
<primary sortas="a-texlive">texlive</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to TeX Live</title>
|
|
|
|
|
2011-12-05 13:42:37 +08:00
|
|
|
<para>The <application>TeX Live</application> package is a comprehensive
|
|
|
|
TeX document production system. It includes TEX, LaTeX2e, ConTEXt,
|
|
|
|
Metafont, MetaPost, BibTeX and many other programs; an extensive collection
|
|
|
|
of macros, fonts and documentation; and support for typesetting in many
|
|
|
|
different scripts from around the world.</para>
|
2013-02-12 02:51:17 +08:00
|
|
|
|
2013-09-03 02:10:49 +08:00
|
|
|
&lfs74_checked;
|
2011-12-10 09:21:48 +08:00
|
|
|
|
2011-01-18 08:13:43 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&texlive-source-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&texlive-source-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &texlive-source-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &texlive-source-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &texlive-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &texlive-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2011-12-05 13:42:37 +08:00
|
|
|
<para>The TeX Live installer: <ulink url="&texlive-installer;"/></para>
|
|
|
|
</listitem>
|
2011-01-18 08:13:43 +08:00
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">TeX Live Dependencies</bridgehead>
|
2011-12-05 13:42:37 +08:00
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended (to build from source)</bridgehead>
|
|
|
|
<para role="recommended">
|
|
|
|
The source ships with its own versions of <emphasis>many</emphasis>
|
|
|
|
libraries, and will use them unless it is forced to use the system
|
|
|
|
versions.
|
2014-02-07 07:15:02 +08:00
|
|
|
<xref linkend="gs"/>,
|
2014-02-09 11:42:03 +08:00
|
|
|
<xref linkend="icu"/>,
|
2011-12-05 13:42:37 +08:00
|
|
|
<xref linkend="freetype2"/>,
|
|
|
|
<xref linkend="fontconfig"/>,
|
2014-02-09 11:42:03 +08:00
|
|
|
<xref linkend="graphite2"/>,
|
|
|
|
<xref linkend="harfbuzz"/> (linked to graphite2),
|
2011-12-05 13:42:37 +08:00
|
|
|
<xref linkend="libpng"/>,
|
2014-02-09 11:42:03 +08:00
|
|
|
<xref linkend="poppler"/>,
|
|
|
|
<xref linkend="x-window-system"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional (to build from source)</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
The source ships with its own versions of these libraries, which are either
|
|
|
|
not under active development, or only used for limited functionality. If
|
|
|
|
you install these, as with some other optional dependencies in this book you
|
|
|
|
will need to tell <command>configure</command> to use the system versions.
|
2013-12-13 18:17:49 +08:00
|
|
|
<ulink url="http://libgd.bitbucket.org">GD</ulink>,
|
|
|
|
<ulink url="http://fossies.org/linux/misc/t1lib-5.1.2.tar.gz/">t1lib</ulink>,
|
2011-12-05 13:42:37 +08:00
|
|
|
<ulink url="http://sourceforge.net/projects/zziplib/">ZZIPlib</ulink>,
|
|
|
|
<ulink url="http://www.gnu.org/software/clisp/">CLISP</ulink>,
|
2014-02-09 11:42:03 +08:00
|
|
|
<ulink url="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=TECkitDownloads">TECkit</ulink>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Runtime dependencies if building from source</bridgehead>
|
|
|
|
<para role="recommended">
|
|
|
|
not yet adequate to rebuild this),
|
|
|
|
<xref linkend="tk"/> for ep2pdftk.
|
2014-02-07 07:15:02 +08:00
|
|
|
</para>
|
2011-01-18 08:13:43 +08:00
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/texlive"/></para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of TeX Live</title>
|
|
|
|
|
2012-08-23 06:30:35 +08:00
|
|
|
<para>The <application>TeX Live</application> set of programs with its
|
2011-12-05 13:42:37 +08:00
|
|
|
supporting documents, fonts, and utilities is very large. The upstream
|
|
|
|
maintainers recommend placing all files in a single directory structure.
|
|
|
|
BLFS recommends <filename class='directory'>/opt/texlive</filename>.</para>
|
|
|
|
|
2013-02-12 02:51:17 +08:00
|
|
|
<para>First, unpack the installer and change into the installer's
|
2014-02-09 11:42:03 +08:00
|
|
|
directory, <filename class='directory'>install-tl-<CCYYMMDD></filename>.
|
|
|
|
This directory name changes frequently when the installer is updated,
|
|
|
|
so replace <CCYYMMDD> by the correct directory name.</para>
|
2011-12-05 13:42:37 +08:00
|
|
|
|
|
|
|
<screen><userinput>tar -xf install-tl-unx.tar.gz &&
|
2014-02-09 11:42:03 +08:00
|
|
|
cd install-tl-<CCYYMMDD> </userinput></screen>
|
2011-12-05 13:42:37 +08:00
|
|
|
|
|
|
|
<note><para>The distribution binaries installed below use static linking
|
|
|
|
for internal <application>TeX Live</application> libraries. Additional
|
|
|
|
libraries as specified in the dependencies section do not need to be
|
|
|
|
present during the install, but the programs that need them will not run
|
|
|
|
until their specific dependencies are installed.</para></note>
|
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem>
|
|
|
|
user:</para>
|
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
<screen><userinput role="root">TEXLIVE_INSTALL_PREFIX=/opt/texlive ./install-tl</userinput></screen>
|
2011-12-05 13:42:37 +08:00
|
|
|
|
|
|
|
<para>This command is interactive and allows selection or modification of
|
|
|
|
platform, packages, directories, and other options. The full installation
|
2013-08-01 03:27:37 +08:00
|
|
|
scheme will require about 3.5 gigabytes of disk space. The time to complete
|
|
|
|
the download will depend on your internet connection speed and the
|
2011-12-05 13:42:37 +08:00
|
|
|
number of packages selected.</para>
|
|
|
|
|
|
|
|
<para>After the package download is complete, the next step is to make sure
|
|
|
|
that the system can properly find the files. If you set up your login
|
|
|
|
scripts as recommended in <xref linkend='postlfs-config-profile'/>, update
|
|
|
|
the needed paths by appending to the <filename>extrapaths.sh</filename> script.
|
2014-02-09 11:42:03 +08:00
|
|
|
The programs are always installed in an <ARCH>-linux subdirectory. If
|
|
|
|
you are not using x86_64, <emphasis>always</emphasis> change that to your
|
|
|
|
actual installation location.</para>
|
2011-12-05 13:42:37 +08:00
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
<screen><userinput role="root">cat >> /etc/profile.d/extrapaths.sh << "EOF"
|
2013-08-01 03:27:37 +08:00
|
|
|
pathappend /usr/share/man MANPATH
|
|
|
|
pathappend /opt/texlive/&texlive-year;/texmf-dist/doc/man MANPATH
|
|
|
|
pathappend /usr/share/info INFOPATH
|
|
|
|
pathappend /opt/texlive/&texlive-year;/texmf-dist/doc/info INFOPATH
|
2013-02-12 02:51:17 +08:00
|
|
|
pathappend /opt/texlive/&texlive-year;/bin/x86_64-linux
|
2011-12-05 13:42:37 +08:00
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
<note><para>The standard MANPATH and INFOPATH path are specified above to
|
|
|
|
ensure they are included. If they are already set in the boot script
|
|
|
|
procedure, the pathappend function will ensure duplicates are
|
|
|
|
removed, so including them here will do no harm.</para></note>
|
|
|
|
|
|
|
|
<para>The new paths can be immediately activated by running <command>source
|
|
|
|
/etc/profile</command>.</para>
|
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
<para>At this point the binary installation is complete.</para>
|
|
|
|
|
|
|
|
<para>Please note that installing from source will recompile the binary
|
|
|
|
programs and recreate the <literal>man</literal> and <literal>info</literal>
|
|
|
|
files. It will also overwrite the scripts - some of these may be older
|
|
|
|
versions than those from the newer installer. It will <emphasis>not</emphasis>
|
|
|
|
recreate any of the following: the more than 200 symlinks in the
|
|
|
|
<ARCH>-linux directory (some are alternate names, many are pointers to
|
|
|
|
the scripts), html files, PDF files, licenses, README files, two config
|
|
|
|
files (<filename>texmf.cnf</filename> and <filename>texmfcnf.lua</filename>),
|
|
|
|
nor the many package and font files in
|
|
|
|
<filename class="directory">texmf-dist</filename> and
|
|
|
|
<filename class="directory">texmf-var</filename>, nor the files recording
|
|
|
|
the actions of the installer, and the <filename>ls-R</filename> files listing
|
|
|
|
what was originally installed.</para>
|
|
|
|
|
|
|
|
<para>At the moment, these instructions do not rebuild
|
|
|
|
<application>asy</application> and <application>xindy</application> which were
|
|
|
|
installed by the binary installer.</para> <!-- FIXME -->
|
|
|
|
|
|
|
|
<para> If building from
|
|
|
|
source is desired, continue as a normal user. Extract the source package as
|
|
|
|
usual. Again, change x86_64-linux to whatever matches your architecture.
|
|
|
|
The developers do not recommend building in the source directory, so enter
|
|
|
|
the following commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput>mkdir texlive-build &&
|
|
|
|
cd texlive-build &&
|
|
|
|
|
|
|
|
../configure --prefix=/opt/texlive/2013 \
|
|
|
|
--bindir=/opt/texlive/2013/bin/x86_64-linux \
|
|
|
|
--datarootdir=/opt/texlive/2013 \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--infodir=/opt/texlive/2013/texmf-dist/doc/info \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--mandir=/opt/texlive/2013/texmf-dist/doc/man \
|
|
|
|
--disable-native-texlive-build \
|
|
|
|
--disable-static --enable-shared \
|
|
|
|
--with-system-libgs \
|
|
|
|
--with-system-poppler \
|
|
|
|
--with-system-freetype2 \
|
|
|
|
--with-system-fontconfig \
|
|
|
|
--with-system-libpng \
|
|
|
|
--with-system-icu \
|
|
|
|
--with-system-graphite2 \
|
|
|
|
--with-system-harfbuzz \
|
|
|
|
--with-system-xpdf \
|
|
|
|
--with-system-poppler \
|
|
|
|
--with-system-cairo \
|
|
|
|
--with-system-pixman \
|
|
|
|
--with-system-zlib \
|
|
|
|
--with-banner-add=" - BLFS" &&
|
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>To test the results, issue: <command>make -k check</command>.</para>
|
2011-01-18 08:13:43 +08:00
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem>
|
|
|
|
user:</para>
|
2011-11-29 11:53:39 +08:00
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
<screen><userinput role="root">make install</userinput></screen>
|
2011-01-18 08:13:43 +08:00
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
</sect2>
|
2011-01-18 08:13:43 +08:00
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
2011-01-18 08:13:43 +08:00
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
<para>
|
|
|
|
<parameter>--prefix=, --bindir=, --datarootdir=, --infodir=, --mandir= ...
|
|
|
|
</parameter>: these switches ensure that the files installed from source
|
|
|
|
will overwrite the corresponding files previously installed by
|
|
|
|
<application>install-tl</application>.
|
|
|
|
</para>
|
2011-01-18 08:13:43 +08:00
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
<para>
|
|
|
|
<parameter>--includedir=, --libdir= ...</parameter> : these switches ensure
|
|
|
|
that the libraries will be found at runtime, and that programs can be
|
|
|
|
compiled against them.
|
|
|
|
</para>
|
2011-01-18 08:13:43 +08:00
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>--enable-shared</parameter>: Use shared versions of
|
|
|
|
<filename class="libraryfile">libkpathsea</filename> and
|
|
|
|
<filename class="libraryfile">libptexenc</filename>.
|
|
|
|
</para>
|
2011-01-18 08:13:43 +08:00
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
<para>
|
|
|
|
<parameter>--with-system-...</parameter>: Unless this parameter is used,
|
|
|
|
the included versions of these libraries will be statically compiled
|
|
|
|
into the programs which need them. If you decided not to install a
|
|
|
|
recommended library, omit the corresponding switches.
|
|
|
|
</para>
|
2011-01-18 08:13:43 +08:00
|
|
|
|
2014-02-09 11:42:03 +08:00
|
|
|
<para>
|
|
|
|
<parameter>--with-system-xpdf</parameter>: Uniquely, this parameter has
|
|
|
|
a non-standard meaning, it tells <command>configure</command> to use the
|
|
|
|
system-installed <application>poppler</application> headers and library.
|
|
|
|
Again, omit this if you have not installed
|
|
|
|
<application>poppler</application>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<option>--without-x</option>: use this if you do not have Xorg installed.
|
|
|
|
</para>
|
2011-01-18 08:13:43 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>Over 300 binaries and symlinks to scripts</seg>
|
2011-12-05 13:42:37 +08:00
|
|
|
<seg>None</seg>
|
|
|
|
<seg>/opt/texlive</seg>
|
2011-01-18 08:13:43 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="texlive-programs">
|
2011-12-05 13:42:37 +08:00
|
|
|
<term><command>TeX programs</command></term>
|
2011-01-18 08:13:43 +08:00
|
|
|
<listitem>
|
|
|
|
<para>included in the <application>TeX Live</application> package are
|
|
|
|
too numerous to individually list. Please refer to the individual
|
2011-12-05 13:42:37 +08:00
|
|
|
program man and html pages in the installation directory's 2011/index.html
|
|
|
|
directory.</para>
|
2011-01-18 08:13:43 +08:00
|
|
|
<indexterm zone="texlive texlive-programs">
|
|
|
|
<primary sortas="b-texlive-programs">TeX Live programs</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|