source: pst/typesetting/tex-path.xml

trunk
Last change on this file was 755607e3, checked in by Xi Ruoyao <xry111@…>, 11 days ago

Kick MANPATH out of the book

The man program automatically deduce a good default from PATH, thus no
need to set MANPATH as long as the corresponding PATH component is
added.

  • Property mode set to 100644
File size: 3.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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
8<sect1 id="tex-path" xreflabel="Setting the PATH for TeX Live">
9 <?dbhtml filename="tex-path.html"?>
10
11
12 <title>Setting the PATH for TeX Live</title>
13
14 <para>
15 Upstream prefers to install in <filename
16 class="directory">/usr/local</filename> but the BLFS editors regard that as
17 inconvenient, and think using <filename
18 class="directory">/opt/texlive</filename> is more appropriate. Originally
19 BLFS used a full binary install to bootstrap the source install, so the
20 same prefix is used for both.
21 </para>
22
23 <para>
24 Before starting to build TeX Live, set up your PATH so
25 that the system can properly find the files. If you set up your login
26 scripts as recommended in <xref linkend='postlfs-config-profile'/>, update
27 the needed paths by creating the
28 <filename>texlive.sh</filename> script. The programs are always
29 installed in an &lt;ARCH&gt;-linux subdirectory and on 32-bit x86 this is
30 always i386-linux. For x86_64 and i?86 we can generate this as $TEXARCH:
31 </para>
32
33 <note>
34 <para>
35 If upgrading from a previous year's version, you should manually
36 edit <filename>texlive.sh</filename> to ensure that the version for
37 the year you wish to use is the only TeX present (some people need to
38 keep multiple years available to ensure there are no regressions in
39 their documents).
40 </para>
41 </note>
42
43<!-- EOF should NOT be in double quotes, we want it to evaluate $TEXARCH -->
44<!-- this is also in texlive.xml -->
45 <para>Now, create the texlive.sh script as the &root; user:</para>
46
47<screen role="root"><userinput>TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/')
48
49cat &gt; /etc/profile.d/texlive.sh &lt;&lt; EOF
50<literal># Begin texlive setup
51TEXLIVE_PREFIX=/opt/texlive/&texlive-year;
52export TEXLIVE_PREFIX
53
54pathappend \$TEXLIVE_PREFIX/texmf-dist/doc/info INFOPATH
55pathappend \$TEXLIVE_PREFIX/bin/$TEXARCH
56
57TEXMFCNF=\$TEXLIVE_PREFIX/texmf-dist/web2c
58export TEXMFCNF
59
60# End texlive setup</literal>
61EOF
62
63unset TEXARCH</userinput></screen>
64
65 <note>
66 <para>
67 The standard INFOPATH path are specified above to
68 ensure they are included. If they are already set in the boot script
69 procedure, the pathappend function will ensure duplicates are
70 removed, so including them here will do no harm.
71 </para>
72 </note>
73
74 <note>
75 <para>
76 The backslashes before the dollar signs in the script above are to
77 facilitate a copy/paste operation. The backslashes should not
78 appear in the actual script.
79 </para>
80 </note>
81
82 <para>
83 The new paths can be immediately activated by running:
84 </para>
85
86<screen><userinput>source /etc/profile</userinput></screen>
87
88 <para>
89 You should now proceed either to <xref linkend="tl-installer"/> for
90 a binary installation of texlive, or to <xref linkend="texlive"/> to begin
91 installing from source.
92 </para>
93
94</sect1>
Note: See TracBrowser for help on using the repository browser.