source: pst/typesetting/texlive.xml@ ba0ddeda

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 ba0ddeda was ba0ddeda, checked in by Ken Moffat <ken@…>, 10 years ago

forgot to list the directories in /usr/include, and the libs in /usr/lib, for this way of building TeX Live.

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

  • Property mode set to 100644
File size: 12.2 KB
Line 
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 " ">
8 <!ENTITY texlive-source-download-ftp "ftp://tug.org/texlive/historic/&texlive-year;/texlive-&texlive-version;-source.tar.xz">
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">
14]>
15
16<sect1 id="texlive" xreflabel="texlive-&texlive-version;">
17 <?dbhtml filename="texlive.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>texlive-&texlive-version;</title>
25
26 <indexterm zone="texlive">
27 <primary sortas="a-texlive">texlive</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to TeX Live from source</title>
32
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>
36
37 &lfs74_checked;
38
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">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
71 <bridgehead renderas="sect3">TeX Live Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Recommended</bridgehead>
74 <para role="recommended">
75 <xref linkend="freeglut"/> (for asy),
76 <xref linkend="gs"/>,
77 <xref linkend="x-window-system"/>
78 </para>
79 <para>
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
82 versions. The following are recommended so that the system version
83 will be used:
84 <xref linkend="icu"/>,
85 <xref linkend="freetype2"/>,
86 <xref linkend="fontconfig"/>,
87 <xref linkend="graphite2"/>,
88 <xref linkend="harfbuzz"/> (linked to graphite2),
89 <xref linkend="libpng"/>,
90 <xref linkend="poppler"/>
91 </para>
92
93 <bridgehead renderas="sect4">Optional</bridgehead>
94 <para role="optional">
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
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.
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>,
104 <ulink url="http://sourceforge.net/projects/zziplib/">ZZIPlib</ulink>,
105 <ulink url="http://www.gnu.org/software/clisp/">CLISP</ulink>,
106 <ulink url="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=TECkitDownloads">TECkit</ulink>
107 </para>
108
109 <bridgehead renderas="sect4">Runtime dependencies</bridgehead>
110 <para role="recommended">
111 Some (re-installed) scripts will use
112 <xref linkend="ruby"/> and <xref linkend="tk"/> is used by epspdftk.
113 </para>
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
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>
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
132 x86_64-linux directory (some are alternate names, many are pointers to
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
142 <application>xindy</application> which was installed by the binary installer.
143 If you wish to rebuild that, please consult
144 <ulink url="&blfs-ticket-root;4647">#4647</ulink>. Asy and the rest of
145 asymptote is by default not rebuilt, so we have to separately run
146 <command>configure</command> and <command>make</command> in its directory.
147 </para>
148
149<screen><userinput>patch -Np1 -i ../texlive-&texlive-version;-source-fix_asymptote-1.patch &amp;&amp;
150
151mkdir texlive-build &amp;&amp;
152cd texlive-build &amp;&amp;
153
154../configure --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;
177
178pushd ../utils/asymptote &amp;&amp;
179echo "ac_cv_lib_m_sqrt=yes" >config.cache &amp;&amp;
180echo "ac_cv_lib_z_deflate=yes" >>config.cache &amp;&amp;
181./configure LIBS="-ltirpc " --prefix=/opt/texlive/2013/ \
182 --bindir=/opt/texlive/2013/bin/x86_64-linux \
183 --enable-texlive-build \
184 --datarootdir=/opt/texlive/2013/texmf-dist \
185 --infodir=/opt/texlive/2013/texmf-dist/doc/info/ \
186 --mandir=/opt/texlive/2013/texmf-dist/doc/man \
187 --cache-file=config.cache &amp;&amp;
188popd &amp;&amp;
189
190make &amp;&amp;
191make -C ../utils/asymptote</userinput></screen>
192
193 <para>To test the results, issue: <command>make -k chec &amp;&amp;
194 make -C utils/asymptote checkk</command>.</para>
195
196 <para>Now, as the <systemitem class="username">root</systemitem>
197 user:</para>
198
199<screen><userinput role="root">make install &amp;&amp;
200make -C ../utils/asymptote install</userinput></screen>
201
202 </sect2>
203
204 <sect2 role="commands">
205 <title>Command Explanations</title>
206
207 <para>
208 <parameter>--prefix=, --bindir=, --datarootdir=, --infodir=, --mandir= ...
209 </parameter>: these switches ensure that the files installed from source
210 will overwrite the corresponding files previously installed by
211 <application>install-tl</application>.
212 </para>
213
214 <para>
215 <parameter>--includedir=, --libdir= ...</parameter> : these switches ensure
216 that the libraries will be found at runtime, and that programs can be
217 compiled against them.
218 </para>
219
220 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
221 href="../../xincludes/static-libraries.xml"/>
222
223 <para>
224 <parameter>--enable-shared</parameter>: Use shared versions of
225 <filename class="libraryfile">libkpathsea</filename> and
226 <filename class="libraryfile">libptexenc</filename>.
227 </para>
228
229 <para>
230 <parameter>--with-system-...</parameter>: Unless this parameter is used,
231 the included versions of these libraries will be statically compiled
232 into the programs which need them. If you decided not to install a
233 recommended library, omit the corresponding switches.
234 </para>
235
236 <para>
237 <parameter>--with-system-xpdf</parameter>: Uniquely, this parameter has
238 a non-standard meaning, it tells <command>configure</command> to use the
239 system-installed <application>poppler</application> headers and library.
240 Again, omit this if you have not installed
241 <application>poppler</application>.
242 </para>
243
244 <para>
245 <parameter>echo "ac_cv_lib_m_sqrt=yes" ... LIBS="-ltirpc " &gt;config.cache,
246 ... --cache-file=config.cache</parameter> : The configure scripts in
247 <application>TeX Live</application> are uncommon. Asymptote not only has to
248 be separately configured and built, the configure script fails to find the
249 shared <filename class="libraryfile">libtirpc.so</filename>. Passing that
250 in LIBS breaks the tests for (static) libm and (shared) libz, so we have to
251 fix things up, in much the same way as when cross-compiling.
252 </para>
253
254 <para>
255 <option>--without-x</option>: use this (and omit the configure and make in
256 <filename>utils/asymptote</filename> if you do not have Xorg installed.
257 </para>
258
259 </sect2>
260
261 <sect2 role="content">
262 <title>Contents</title>
263
264 <segmentedlist>
265 <segtitle>Installed Programs</segtitle>
266 <segtitle>Installed Libraries</segtitle>
267 <segtitle>Installed Directories</segtitle>
268
269 <seglistitem>
270 <seg>Over 300 binaries and symlinks to scripts</seg>
271 <seg>libkpathsea.so, libptexenc.so</seg>
272 <seg>/opt/texlive, /usr/include/kpathsea, /usr/include/ptexenc</seg>
273 </seglistitem>
274 </segmentedlist>
275
276 <variablelist>
277 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
278 <?dbfo list-presentation="list"?>
279 <?dbhtml list-presentation="table"?>
280
281 <varlistentry id="texlive-programs">
282 <term><command>TeX&nbsp;programs</command></term>
283 <listitem>
284 <para>included in the <application>TeX Live</application> package are
285 too numerous to individually list. Please refer to the individual
286 program man and html pages in the installation directory's 2011/index.html
287 directory.</para>
288 <indexterm zone="texlive texlive-programs">
289 <primary sortas="b-texlive-programs">TeX Live programs</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="libkpathsea">
295 <term><filename class="libraryfile">libkpathsea.so</filename></term>
296 <listitem>
297 <para>
298 (kpathsearch) exists to look up a file in a list of directories.
299 </para>
300 <indexterm zone="texlive libkpathsea">
301 <primary sortas="c-libkpathsea">libkpathsea.so</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="libptexenc">
307 <term><filename class="libraryfile">libptexenc.so</filename></term>
308 <listitem>
309 <para>
310 is a library for Japanese pTeX (publishing TeX).
311 </para>
312 <indexterm zone="texlive libptexenc">
313 <primary sortas="c-libptexenc">libptexenc.so</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317 </variablelist>
318
319 </sect2>
320
321</sect1>
Note: See TracBrowser for help on using the repository browser.