source: pst/typesetting/texlive.xml@ d943aa7

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d943aa7 was d943aa7, checked in by Ken Moffat <ken@…>, 10 years ago

TeX Live cleanups

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@12748 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.6 KB
RevLine 
[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">
[66479be]9 <!ENTITY texlive-source-md5sum "f52599c99fb1035399b907f4c54f1125">
10 <!ENTITY texlive-source-size "172 MB">
11
12 <!ENTITY texlive-buildsize "1.6 GB">
13 <!ENTITY texlive-time "9.6 SBU">
[f1e103a]14]>
15
[a027d7d3]16<sect1 id="texlive" xreflabel="texlive-&texlive-version;">
[f1e103a]17 <?dbhtml filename="texlive.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
[a027d7d3]24 <title>texlive-&texlive-version;</title>
[f1e103a]25
26 <indexterm zone="texlive">
27 <primary sortas="a-texlive">texlive</primary>
28 </indexterm>
29
30 <sect2 role="package">
[ec44474]31 <title>Introduction to TeX Live from source</title>
[f1e103a]32
[ec44474]33 <para>A binary version of the <application>TeX Live</application> package
34 is installed at <xref linkend="tl-installer"/>. Here, we use that to rebuild
35 the compiled programs from source.</para>
[0d7900a]36
[d943aa7]37 &lfs75_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
[4ba02e6c]61 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
62 <itemizedlist spacing="compact">
63 <listitem>
64 <para>
65 Required patch:
66 <ulink url="&patch-root;/texlive-&texlive-version;-source-fix_asymptote-1.patch"/>
67 </para>
68 </listitem>
69 </itemizedlist>
70
[f1e103a]71 <bridgehead renderas="sect3">TeX Live Dependencies</bridgehead>
[9f35d02]72
[ec44474]73 <bridgehead renderas="sect4">Recommended</bridgehead>
[45d9840]74 <para role="recommended">
[ec44474]75 <xref linkend="freeglut"/> (for asy),
76 <xref linkend="gs"/>,
77 <xref linkend="x-window-system"/>
78 </para>
79 <para>
[45d9840]80 The source ships with its own versions of <emphasis>many</emphasis>
81 libraries, and will use them unless it is forced to use the system
[ec44474]82 versions. The following are recommended so that the system version
83 will be used:
[45d9840]84 <xref linkend="icu"/>,
[9f35d02]85 <xref linkend="freetype2"/>,
86 <xref linkend="fontconfig"/>,
[45d9840]87 <xref linkend="graphite2"/>,
88 <xref linkend="harfbuzz"/> (linked to graphite2),
[9f35d02]89 <xref linkend="libpng"/>,
[ec44474]90 <xref linkend="poppler"/>
[45d9840]91 </para>
92
[ec44474]93 <bridgehead renderas="sect4">Optional</bridgehead>
[45d9840]94 <para role="optional">
[ec44474]95 <ulink url="http://www.fftw.org/">FFTW</ulink> can be used by asy.
96 </para>
97 <para>
98 The source ships with its own versions of several libraries which are either
[45d9840]99 not under active development, or only used for limited functionality. If
100 you install these, as with some other optional dependencies in this book you
101 will need to tell <command>configure</command> to use the system versions.
[a754ee2b]102 <ulink url="http://libgd.bitbucket.org">GD</ulink>,
103 <ulink url="http://fossies.org/linux/misc/t1lib-5.1.2.tar.gz/">t1lib</ulink>,
[9f35d02]104 <ulink url="http://sourceforge.net/projects/zziplib/">ZZIPlib</ulink>,
105 <ulink url="http://www.gnu.org/software/clisp/">CLISP</ulink>,
[45d9840]106 <ulink url="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=TECkitDownloads">TECkit</ulink>
107 </para>
108
[ec44474]109 <bridgehead renderas="sect4">Runtime dependencies</bridgehead>
[45d9840]110 <para role="recommended">
[ec44474]111 Some (re-installed) scripts will use
112 <xref linkend="ruby"/> and <xref linkend="tk"/> is used by epspdftk.
[2a75b9b]113 </para>
[f1e103a]114
115 <para condition="html" role="usernotes">User Notes:
116 <ulink url="&blfs-wiki;/texlive"/></para>
117
118 </sect2>
119
120 <sect2 role="installation">
121 <title>Installation of TeX Live</title>
122
[ec44474]123 <para>These instructions will overwrite the corresponding files from the
124 binary installer. As with the installer, change x86_64-linux to whatever
125 matches your architecture.</para>
[45d9840]126
127 <para>Please note that installing from source will recompile the binary
128 programs and recreate the <literal>man</literal> and <literal>info</literal>
129 files. It will also overwrite the scripts - some of these may be older
130 versions than those from the newer installer. It will <emphasis>not</emphasis>
131 recreate any of the following: the more than 200 symlinks in the
[ec44474]132 x86_64-linux directory (some are alternate names, many are pointers to
[45d9840]133 the scripts), html files, PDF files, licenses, README files, two config
134 files (<filename>texmf.cnf</filename> and <filename>texmfcnf.lua</filename>),
135 nor the many package and font files in
136 <filename class="directory">texmf-dist</filename> and
137 <filename class="directory">texmf-var</filename>, nor the files recording
138 the actions of the installer, and the <filename>ls-R</filename> files listing
139 what was originally installed.</para>
140
141 <para>At the moment, these instructions do not rebuild
[d943aa7]142 <application>xindy</application> which was installed by the binary installer,
143 due to a problem with the tarball's install procedure. Asy and the rest of
[4ba02e6c]144 asymptote is by default not rebuilt, so we have to separately run
145 <command>configure</command> and <command>make</command> in its directory.
146 </para>
[45d9840]147
[4ba02e6c]148<screen><userinput>patch -Np1 -i ../texlive-&texlive-version;-source-fix_asymptote-1.patch &amp;&amp;
149
150mkdir texlive-build &amp;&amp;
[45d9840]151cd texlive-build &amp;&amp;
152
[d943aa7]153../configure \
154 --prefix=/opt/texlive/2013 \
155 --bindir=/opt/texlive/2013/bin/x86_64-linux \
156 --datarootdir=/opt/texlive/2013 \
157 --includedir=/usr/include \
158 --infodir=/opt/texlive/2013/texmf-dist/doc/info \
159 --libdir=/usr/lib \
160 --mandir=/opt/texlive/2013/texmf-dist/doc/man \
161 --disable-native-texlive-build \
162 --disable-static --enable-shared \
163 --with-system-libgs \
164 --with-system-poppler \
165 --with-system-freetype2 \
166 --with-system-fontconfig \
167 --with-system-libpng \
168 --with-system-icu \
169 --with-system-graphite2 \
170 --with-system-harfbuzz \
171 --with-system-xpdf \
172 --with-system-poppler \
173 --with-system-cairo \
174 --with-system-pixman \
175 --with-system-zlib \
176 --with-banner-add=" - BLFS" &amp;&amp;
[45d9840]177
[4ba02e6c]178pushd ../utils/asymptote &amp;&amp;
[d943aa7]179 echo "ac_cv_lib_m_sqrt=yes" >config.cache &amp;&amp;
180 echo "ac_cv_lib_z_deflate=yes" >>config.cache &amp;&amp;
181
182./configure LIBS="-ltirpc " \
183 --prefix=/opt/texlive/2013/ \
184 --bindir=/opt/texlive/2013/bin/x86_64-linux \
185 --enable-texlive-build \
186 --datarootdir=/opt/texlive/2013/texmf-dist \
187 --infodir=/opt/texlive/2013/texmf-dist/doc/info \
188 --mandir=/opt/texlive/2013/texmf-dist/doc/man \
189 --cache-file=config.cache &amp;&amp;
[4ba02e6c]190popd &amp;&amp;
191
192make &amp;&amp;
193make -C ../utils/asymptote</userinput></screen>
194
195 <para>To test the results, issue: <command>make -k chec &amp;&amp;
196 make -C utils/asymptote checkk</command>.</para>
[f1e103a]197
[45d9840]198 <para>Now, as the <systemitem class="username">root</systemitem>
199 user:</para>
[d40e1a4]200
[4ba02e6c]201<screen><userinput role="root">make install &amp;&amp;
202make -C ../utils/asymptote install</userinput></screen>
[f1e103a]203
[45d9840]204 </sect2>
[f1e103a]205
[45d9840]206 <sect2 role="commands">
207 <title>Command Explanations</title>
[f1e103a]208
[45d9840]209 <para>
210 <parameter>--prefix=, --bindir=, --datarootdir=, --infodir=, --mandir= ...
211 </parameter>: these switches ensure that the files installed from source
212 will overwrite the corresponding files previously installed by
213 <application>install-tl</application>.
214 </para>
[f1e103a]215
[45d9840]216 <para>
217 <parameter>--includedir=, --libdir= ...</parameter> : these switches ensure
218 that the libraries will be found at runtime, and that programs can be
219 compiled against them.
220 </para>
[f1e103a]221
[45d9840]222 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
223 href="../../xincludes/static-libraries.xml"/>
224
225 <para>
226 <parameter>--enable-shared</parameter>: Use shared versions of
227 <filename class="libraryfile">libkpathsea</filename> and
228 <filename class="libraryfile">libptexenc</filename>.
229 </para>
[f1e103a]230
[45d9840]231 <para>
232 <parameter>--with-system-...</parameter>: Unless this parameter is used,
233 the included versions of these libraries will be statically compiled
234 into the programs which need them. If you decided not to install a
235 recommended library, omit the corresponding switches.
236 </para>
[f1e103a]237
[45d9840]238 <para>
239 <parameter>--with-system-xpdf</parameter>: Uniquely, this parameter has
240 a non-standard meaning, it tells <command>configure</command> to use the
241 system-installed <application>poppler</application> headers and library.
242 Again, omit this if you have not installed
243 <application>poppler</application>.
244 </para>
245
246 <para>
[4ba02e6c]247 <parameter>echo "ac_cv_lib_m_sqrt=yes" ... LIBS="-ltirpc " &gt;config.cache,
248 ... --cache-file=config.cache</parameter> : The configure scripts in
249 <application>TeX Live</application> are uncommon. Asymptote not only has to
250 be separately configured and built, the configure script fails to find the
251 shared <filename class="libraryfile">libtirpc.so</filename>. Passing that
252 in LIBS breaks the tests for (static) libm and (shared) libz, so we have to
253 fix things up, in much the same way as when cross-compiling.
254 </para>
255
256 <para>
257 <option>--without-x</option>: use this (and omit the configure and make in
258 <filename>utils/asymptote</filename> if you do not have Xorg installed.
[45d9840]259 </para>
[f1e103a]260
261 </sect2>
262
263 <sect2 role="content">
264 <title>Contents</title>
265
266 <segmentedlist>
267 <segtitle>Installed Programs</segtitle>
268 <segtitle>Installed Libraries</segtitle>
269 <segtitle>Installed Directories</segtitle>
270
271 <seglistitem>
272 <seg>Over 300 binaries and symlinks to scripts</seg>
[ba0ddeda]273 <seg>libkpathsea.so, libptexenc.so</seg>
274 <seg>/opt/texlive, /usr/include/kpathsea, /usr/include/ptexenc</seg>
[f1e103a]275 </seglistitem>
276 </segmentedlist>
277
278 <variablelist>
279 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
280 <?dbfo list-presentation="list"?>
281 <?dbhtml list-presentation="table"?>
282
283 <varlistentry id="texlive-programs">
[9f35d02]284 <term><command>TeX&nbsp;programs</command></term>
[f1e103a]285 <listitem>
286 <para>included in the <application>TeX Live</application> package are
287 too numerous to individually list. Please refer to the individual
[9f35d02]288 program man and html pages in the installation directory's 2011/index.html
289 directory.</para>
[f1e103a]290 <indexterm zone="texlive texlive-programs">
291 <primary sortas="b-texlive-programs">TeX Live programs</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
[ba0ddeda]295
296 <varlistentry id="libkpathsea">
297 <term><filename class="libraryfile">libkpathsea.so</filename></term>
298 <listitem>
299 <para>
300 (kpathsearch) exists to look up a file in a list of directories.
301 </para>
302 <indexterm zone="texlive libkpathsea">
303 <primary sortas="c-libkpathsea">libkpathsea.so</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="libptexenc">
309 <term><filename class="libraryfile">libptexenc.so</filename></term>
310 <listitem>
311 <para>
312 is a library for Japanese pTeX (publishing TeX).
313 </para>
314 <indexterm zone="texlive libptexenc">
315 <primary sortas="c-libptexenc">libptexenc.so</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
[f1e103a]319 </variablelist>
320
321 </sect2>
322
323</sect1>
Note: See TracBrowser for help on using the repository browser.