<?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;

  <!ENTITY tl-installer-download-http	"http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz">

  <!ENTITY tl-installer-download-ftp    " ">
  <!ENTITY tl-installer-md5sum          "f5b1e909d5c2380cefd2cda83d288c00">
  <!ENTITY tl-installer-date             "20140628"> <!-- in the directory name -->
  <!ENTITY tl-installer-size            "3.2 MB">

  <!ENTITY tl-installer-buildsize        "3.8 GB">
  <!ENTITY tl-installer-time            "varies, depending on network speed and traffic">
]>

<sect1 id="tl-installer" xreflabel="install-tl-unx">
  <?dbhtml filename="tl-installer.html"?>

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2015-03-01 20:45:33 -0500 (Sun, 01 Mar 2015) $</date>
  </sect1info>

  <title>install-tl-unx</title>

  <indexterm zone="tl-installer">
    <primary sortas="a-install-tl-unx">install-tl-unx</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to TeX Live and its installer</title>

    <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>

    <para>This page is for people who wish to use the binary installer to
    provide the programs, the scripts, and a lot of supporting files and
    documentation.  The installer is updated frequently, so its md5sum will
    change if it is newer than what is shown below.  Newer versions of the
    installer are expected to work with these instructions, for so long as they
    install to a
    <filename class="directory">&texlive-year;/</filename> directory.</para>

    &lfs77_checked;

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>Download (HTTP): <ulink url="&tl-installer-download-http;"/></para>
      </listitem>
      <listitem>
        <para>Download (FTP): <ulink url="&tl-installer-download-ftp;"/></para>
      </listitem>
      <listitem>
        <para>Download MD5 sum: &tl-installer-md5sum; (at &tl-installer-date;)</para>
      </listitem>
      <listitem>
        <para>Download size: &tl-installer-size;</para>
      </listitem>
      <listitem>
        <para>Estimated disk space required: &tl-installer-buildsize;</para>
      </listitem>
      <listitem>
        <para>Estimated build time: &tl-installer-time;</para>
      </listitem>
    </itemizedlist>

    <bridgehead renderas="sect4">Recommended (at runtime)</bridgehead>
    <para role="recommended">
      The binaries are mostly linked to static libraries such as
      <filename class="libraryfile">libc.a</filename>, but a few of the programs
      and several scripts will fail if the following packages are not present.
    </para>
    <para role="recommended">
      <xref linkend="gs"/> is dynamically loaded by dvisvgm, which is used by
     <application>asy</application>.
    </para>
    <para role="recommended">
      <xref linkend="xorg7-lib"/> and
      <xref linkend="libxcb"/> are needed for inimf, mf, pdfclose, pdfopen and
      xdvixaw. But if you are using asy, or using <application>TeX</application>
      to create a PDF file, you will need an <xref linkend="x-window-system"/>
      (for PDF files, this is to support a PDF viewer of your choice, for example
       <xref linkend="epdfview"/>).
    </para>
    <para role="recommended">
      the optional non-wide-character ncurses library (for "some binary-only
      application") from the bottom of the <application>Ncurses</application>
      page in LFS is needed for xindy.run which is used by
      <application>xindy</application>
    </para>
    <para role="recommended">
      If you are building on 32-bit x86, the binary version of asy needs <ulink
      url="http://www.fftw.org/">FFTW</ulink>, <xref linkend="glu"/> and <ulink
      url="ftp://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz">libreadline-5.2</ulink>
      : this only requires <filename>libreadline.so.5.2</filename> which can be
      manually copied from the <filename class="directory">shm/</filename>
      directory after running <command>configure</command> and <command>make</command>
      and then symlinked as <filename>libreadline.so.5</filename>.
    </para>
    <!-- text for runtime deps, shared with texlive and pass 1 -->
    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     href="../../xincludes/texruntime.xml"/>

    <para condition="html" role="usernotes">User Notes:
    <ulink url="&blfs-wiki;/tl-installer"/></para>

  </sect2>

  <sect2 role="installation">
    <title>Binary Installation of TeX Live</title>

    <para>The <application>TeX Live</application> set of programs with its
    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>

    <para>As with any other package, unpack the installer and change into its
    directory, <filename class='directory'>install-tl-&lt;CCYYMMDD&gt;</filename>.
    This directory name changes when the installer is updated, so replace
    &lt;CCYYMMDD&gt; by the correct directory name.</para>

    <note>
    <para>
    The distribution binaries installed below use static linking
    for general linux system libraries.  Additional libraries or interpreters
    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 have been installed.
    </para>

    <!-- please keep something like this in the future -->
    <para>
    With all contributed binary software, there may be a mismatch between the
    builder's toolchain and your hardware.  In most of TeX this will probably
    not matter, but in uncommon corner cases you might hit problems.
    e.g. if your x86_64 processor does not support 3dnowext or 3dnow, the
    2014-06-28 binary failed in conTeXt when running LuaTeX, although lualatex
    worked, as did the i686 binaries on the same machine. In such cases, the
    easiest solution is to install texlive from source.
    </para>
    </note>

    <para>Now, as the <systemitem class="username">root</systemitem>
    user:</para>

<screen role="root"><userinput>TEXLIVE_INSTALL_PREFIX=/opt/texlive ./install-tl</userinput></screen>

    <para>This command is interactive and allows selection or modification of
    platform, packages, directories, and other options.  The full installation
    scheme will require about 3.8 gigabytes of disk space.  The time to complete
    the download will depend on your internet connection speed and the
    number of packages selected.</para>

    <para>Now proceed to <xref linkend="tex-path"/>.</para>

  </sect2>

  <sect2 role="commands">
    <title>Command Explanations</title>

    <para>
      <option>./install-tl --location
      http://mirror.aut.ac.nz/CTAN/systems/texlive/tlnet/</option>: use a
      variation of this if you wish to use a different mirror, e.g. because
      you are in New Zealand but the installer chooses to use an Australian
      mirror. The list of mirrors is at http://ctan.org/mirrors.
    </para>

  </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>
        <seg>None</seg>
        <seg>/opt/texlive</seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="tl-installer-programs">
        <term><command>TeX&nbsp;programs</command></term>
        <listitem>
          <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
          href="../../xincludes/texprogs.xml"/>
          <indexterm zone="tl-installer tl-installer-programs">
            <primary sortas="b-tl-installer-programs">TeX Live programs</primary>
          </indexterm>
        </listitem>
      </varlistentry>
    </variablelist>

  </sect2>

</sect1>
