[c904794a] | 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 tl-installer-download-http "http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz">
|
---|
| 8 |
|
---|
| 9 | <!ENTITY tl-installer-download-ftp " ">
|
---|
[666e811] | 10 | <!ENTITY tl-installer-md5sum "f5b1e909d5c2380cefd2cda83d288c00">
|
---|
| 11 | <!ENTITY tl-installer-date "20140628"> <!-- in the directory name -->
|
---|
| 12 | <!ENTITY tl-installer-size "3.2 MB">
|
---|
[c904794a] | 13 |
|
---|
| 14 | <!ENTITY tl-installer-buildsize "3.8 GB">
|
---|
| 15 | <!ENTITY tl-installer-time "varies, depending on network speed and traffic">
|
---|
| 16 | ]>
|
---|
| 17 |
|
---|
| 18 | <sect1 id="tl-installer" xreflabel="install-tl-unx">
|
---|
| 19 | <?dbhtml filename="tl-installer.html"?>
|
---|
| 20 |
|
---|
| 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
| 23 | <date>$Date$</date>
|
---|
| 24 | </sect1info>
|
---|
| 25 |
|
---|
| 26 | <title>install-tl-unx</title>
|
---|
| 27 |
|
---|
| 28 | <indexterm zone="tl-installer">
|
---|
| 29 | <primary sortas="a-install-tl-unx">install-tl-unx</primary>
|
---|
| 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
| 33 | <title>Introduction to TeX Live and its installer</title>
|
---|
| 34 |
|
---|
| 35 | <para>The <application>TeX Live</application> package is a comprehensive
|
---|
[666e811] | 36 | TeX document production system. It includes TeX, LaTeX2e, ConTeXt,
|
---|
[c904794a] | 37 | Metafont, MetaPost, BibTeX and many other programs; an extensive collection
|
---|
| 38 | of macros, fonts and documentation; and support for typesetting in many
|
---|
| 39 | different scripts from around the world.</para>
|
---|
| 40 |
|
---|
| 41 | <para>It is necessary to use a binary installer for the first install.
|
---|
| 42 | This will provide the programs, the scripts, and a lot of supporting files
|
---|
[ec10720] | 43 | and documentation. After that, you can rebuild the programs from source
|
---|
| 44 | by following the instructions for <xref linkend="texlive"/> and
|
---|
| 45 | <xref linkend="biber"/>. The installer
|
---|
[c904794a] | 46 | is updated frequently, so its md5sum will change if it is newer than what
|
---|
| 47 | is shown below. Newer versions of the installer are expected to work with
|
---|
| 48 | these instructions, for so long as they install to a
|
---|
| 49 | <filename class="directory">&texlive-year;/</filename> directory.</para>
|
---|
| 50 |
|
---|
[8c1b9f7] | 51 | &lfs76_checked;
|
---|
[c904794a] | 52 |
|
---|
| 53 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 54 | <itemizedlist spacing="compact">
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download (HTTP): <ulink url="&tl-installer-download-http;"/></para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Download (FTP): <ulink url="&tl-installer-download-ftp;"/></para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[666e811] | 62 | <para>Download MD5 sum: &tl-installer-md5sum; (at &tl-installer-date;)</para>
|
---|
[c904794a] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>Download size: &tl-installer-size;</para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Estimated disk space required: &tl-installer-buildsize;</para>
|
---|
| 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>Estimated build time: &tl-installer-time;</para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect4">Recommended (at runtime)</bridgehead>
|
---|
| 76 | <para role="recommended">
|
---|
| 77 | The binaries are mostly linked to static libraries such as
|
---|
| 78 | <filename class="libraryfile">libc.a</filename>, but a few of the programs
|
---|
[666e811] | 79 | and several scripts will fail if the following packages are not present.
|
---|
[c904794a] | 80 | </para>
|
---|
| 81 | <para>
|
---|
[666e811] | 82 | <xref linkend="gs"/> is dynamically loaded by dvisvgm, which is used by
|
---|
| 83 | <application>asy</application>.
|
---|
[c904794a] | 84 | </para>
|
---|
| 85 | <para>
|
---|
| 86 | <xref linkend="xorg7-lib"/> and
|
---|
[8fc0db78] | 87 | <xref linkend="libxcb"/> are needed for inimf, mf, pdfclose, pdfopen and
|
---|
| 88 | xdvixaw. But if you are using asy, or using <application>TeX</application>
|
---|
| 89 | to create a PDF file, you will need an <xref linkend="x-window-system"/>
|
---|
| 90 | (for PDF files, this is to support a PDF viewer of your choice, for example
|
---|
| 91 | <xref linkend="epdfview"/>).
|
---|
[8c1b9f7] | 92 | </para>
|
---|
[c904794a] | 93 | <para>
|
---|
[666e811] | 94 | the optional non-wide-character ncurses library (for "some binary-only
|
---|
[c904794a] | 95 | application") from the bottom of the <application>Ncurses</application>
|
---|
[666e811] | 96 | page in LFS is needed for xindy.run which is used by
|
---|
| 97 | <application>xindy</application>
|
---|
| 98 | </para>
|
---|
[8fc0db78] | 99 | <para>
|
---|
| 100 | If you are building on 32-bit x86, the binary version of asy needs <ulink
|
---|
| 101 | url="http://www.fftw.org/">FFTW</ulink>, <xref linkend="glu"/> and <ulink
|
---|
| 102 | url="ftp://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz">libreadline-5.2</ulink>
|
---|
| 103 | : this only requires <filename>libreadline.so.5.2</filename> which can be
|
---|
| 104 | manually copied from the <filename class="directory">shm/</filename>
|
---|
| 105 | directory after running <command>configure</command> and <command>make</command>
|
---|
| 106 | and then symlinked as <filename>libreadline.so.5</filename>.
|
---|
| 107 | </para>
|
---|
[666e811] | 108 | <para>
|
---|
| 109 | <xref linkend="python2"/> is used by many scripts.
|
---|
[c904794a] | 110 | </para>
|
---|
| 111 | <para>
|
---|
[666e811] | 112 | <xref linkend="ruby"/> is used by some scripts, mostly within mtx_context
|
---|
[4070e7e0] | 113 | which is part of <application>conTeXt</application>, but also for one or
|
---|
| 114 | two others, such as match_parens, which are generally useful.
|
---|
[c904794a] | 115 | </para>
|
---|
| 116 |
|
---|
| 117 | <para condition="html" role="usernotes">User Notes:
|
---|
| 118 | <ulink url="&blfs-wiki;/tl-installer"/></para>
|
---|
| 119 |
|
---|
| 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 | <sect2 role="installation">
|
---|
| 123 | <title>Binary Installation of TeX Live</title>
|
---|
| 124 |
|
---|
| 125 | <para>The <application>TeX Live</application> set of programs with its
|
---|
| 126 | supporting documents, fonts, and utilities is very large. The upstream
|
---|
| 127 | maintainers recommend placing all files in a single directory structure.
|
---|
| 128 | BLFS recommends <filename class='directory'>/opt/texlive</filename>.</para>
|
---|
| 129 |
|
---|
[6193c394] | 130 | <para>As with any other package, unpack the installer and change into its
|
---|
[c904794a] | 131 | directory, <filename class='directory'>install-tl-<CCYYMMDD></filename>.
|
---|
| 132 | This directory name changes when the installer is updated, so replace
|
---|
| 133 | <CCYYMMDD> by the correct directory name.</para>
|
---|
| 134 |
|
---|
[8a4cd0a] | 135 | <note>
|
---|
| 136 | <para>
|
---|
| 137 | The distribution binaries installed below use static linking
|
---|
[c904794a] | 138 | for general linux system libraries. Additional libraries or interpreters
|
---|
| 139 | as specified in the dependencies section do not need to be present during
|
---|
| 140 | the install, but the programs that need them will not run until their
|
---|
[8a4cd0a] | 141 | specific dependencies have been installed.
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <!-- please keep something like this in the future -->
|
---|
| 145 | <para>
|
---|
| 146 | With all contributed binary software, there may be a mismatch between the
|
---|
| 147 | builder's toolchain and your hardware. In most of TeX this will probably
|
---|
| 148 | not matter, but in uncommon corner cases you might hit problems.
|
---|
| 149 | e.g. if your x86_64 processor does not support 3dnowext or 3dnow, the
|
---|
| 150 | 2014-06-28 binary failed in conTeXt when running LuaTeX, although lualatex
|
---|
| 151 | worked, as did the i686 binaries on the same machine. In such cases, the
|
---|
| 152 | easiest solution is to install texlive from source.
|
---|
| 153 | </para>
|
---|
| 154 | </note>
|
---|
[c904794a] | 155 |
|
---|
| 156 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 157 | user:</para>
|
---|
| 158 |
|
---|
[db39404] | 159 | <screen role="root"><userinput>TEXLIVE_INSTALL_PREFIX=/opt/texlive ./install-tl</userinput></screen>
|
---|
[c904794a] | 160 |
|
---|
| 161 | <para>This command is interactive and allows selection or modification of
|
---|
| 162 | platform, packages, directories, and other options. The full installation
|
---|
| 163 | scheme will require about 3.8 gigabytes of disk space. The time to complete
|
---|
| 164 | the download will depend on your internet connection speed and the
|
---|
| 165 | number of packages selected.</para>
|
---|
| 166 |
|
---|
| 167 | <para>After the package download is complete, the next step is to make sure
|
---|
| 168 | that the system can properly find the files. If you set up your login
|
---|
| 169 | scripts as recommended in <xref linkend='postlfs-config-profile'/>, update
|
---|
[a0e3f909] | 170 | the needed paths by appending to the
|
---|
| 171 | <filename>extrapaths.sh</filename> script. The programs are always
|
---|
[ec10720] | 172 | installed in an <ARCH>-linux subdirectory and on 32-bit x86 this is
|
---|
| 173 | always i386-linux. For x86_64 and i?86 we can generate this as $TEXARCH:
|
---|
| 174 | </para>
|
---|
[c904794a] | 175 |
|
---|
[ec10720] | 176 | <!-- EOF should NOT be in double quotes, we want it to evaluate $TEXARCH -->
|
---|
[db39404] | 177 | <screen role="root"><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &&
|
---|
[ec10720] | 178 | cat >> /etc/profile.d/extrapaths.sh << EOF
|
---|
[c904794a] | 179 | pathappend /usr/share/man MANPATH
|
---|
| 180 | pathappend /opt/texlive/&texlive-year;/texmf-dist/doc/man MANPATH
|
---|
| 181 | pathappend /usr/share/info INFOPATH
|
---|
| 182 | pathappend /opt/texlive/&texlive-year;/texmf-dist/doc/info INFOPATH
|
---|
[ec10720] | 183 | pathappend /opt/texlive/&texlive-year;/bin/$TEXARCH
|
---|
| 184 | EOF
|
---|
| 185 | unset TEXARCH</userinput></screen>
|
---|
[c904794a] | 186 |
|
---|
| 187 | <note><para>The standard MANPATH and INFOPATH path are specified above to
|
---|
| 188 | ensure they are included. If they are already set in the boot script
|
---|
| 189 | procedure, the pathappend function will ensure duplicates are
|
---|
| 190 | removed, so including them here will do no harm.</para></note>
|
---|
| 191 |
|
---|
| 192 | <para>The new paths can be immediately activated by running <command>source
|
---|
| 193 | /etc/profile</command>.</para>
|
---|
| 194 |
|
---|
| 195 | <para>At this point the binary installation is complete.</para>
|
---|
| 196 |
|
---|
| 197 | </sect2>
|
---|
| 198 |
|
---|
[8fc0db78] | 199 | <sect2 role="commands">
|
---|
| 200 | <title>Command Explanations</title>
|
---|
| 201 |
|
---|
| 202 | <para>
|
---|
| 203 | <option>./install-tl --location
|
---|
| 204 | http://mirror.aut.ac.nz/CTAN/systems/texlive/tlnet/</option>: use a
|
---|
| 205 | variation of this if you wish to use a different mirror, e.g. because
|
---|
| 206 | you are in New Zealand but the installer chooses to use an Australian
|
---|
| 207 | mirror. The list of mirrors is at http://ctan.org/mirrors.
|
---|
| 208 | </para>
|
---|
| 209 |
|
---|
| 210 | </sect2>
|
---|
| 211 |
|
---|
[c904794a] | 212 | <sect2 role="content">
|
---|
| 213 | <title>Contents</title>
|
---|
| 214 |
|
---|
| 215 | <segmentedlist>
|
---|
| 216 | <segtitle>Installed Programs</segtitle>
|
---|
| 217 | <segtitle>Installed Libraries</segtitle>
|
---|
| 218 | <segtitle>Installed Directories</segtitle>
|
---|
| 219 |
|
---|
| 220 | <seglistitem>
|
---|
| 221 | <seg>Over 300 binaries and symlinks to scripts</seg>
|
---|
| 222 | <seg>None</seg>
|
---|
| 223 | <seg>/opt/texlive</seg>
|
---|
| 224 | </seglistitem>
|
---|
| 225 | </segmentedlist>
|
---|
| 226 |
|
---|
| 227 | <variablelist>
|
---|
| 228 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 229 | <?dbfo list-presentation="list"?>
|
---|
| 230 | <?dbhtml list-presentation="table"?>
|
---|
| 231 |
|
---|
| 232 | <varlistentry id="tl-installer-programs">
|
---|
| 233 | <term><command>TeX programs</command></term>
|
---|
| 234 | <listitem>
|
---|
[666e811] | 235 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 236 | href="../../xincludes/texprogs.xml"/>
|
---|
[c904794a] | 237 | <indexterm zone="tl-installer tl-installer-programs">
|
---|
| 238 | <primary sortas="b-tl-installer-programs">TeX Live programs</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
| 242 | </variablelist>
|
---|
| 243 |
|
---|
| 244 | </sect2>
|
---|
| 245 |
|
---|
| 246 | </sect1>
|
---|