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 |
|
---|
8 | <sect1 id="tex-path" xreflabel="Setting the PATH for TeX Live">
|
---|
9 | <?dbhtml filename="tex-path.html"?>
|
---|
10 |
|
---|
11 | <sect1info>
|
---|
12 | <othername>$LastChangedBy$</othername>
|
---|
13 | <date>$Date$</date>
|
---|
14 | </sect1info>
|
---|
15 |
|
---|
16 | <title>Setting the PATH for TeX Live</title>
|
---|
17 |
|
---|
18 | <para>After the package download is complete, the next step is to make sure
|
---|
19 | that the system can properly find the files. If you set up your login
|
---|
20 | scripts as recommended in <xref linkend='postlfs-config-profile'/>, update
|
---|
21 | the needed paths by appending to the
|
---|
22 | <filename>extrapaths.sh</filename> script. The programs are always
|
---|
23 | installed in an <ARCH>-linux subdirectory and on 32-bit x86 this is
|
---|
24 | always i386-linux. For x86_64 and i?86 we can generate this as $TEXARCH:
|
---|
25 | </para>
|
---|
26 |
|
---|
27 | <!-- EOF should NOT be in double quotes, we want it to evaluate $TEXARCH -->
|
---|
28 | <!-- this is also in texlive.xml -->
|
---|
29 | <screen role="root"><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &&
|
---|
30 |
|
---|
31 | cat >> /etc/profile.d/extrapaths.sh << EOF
|
---|
32 | <literal>
|
---|
33 | # Begin texlive addition
|
---|
34 |
|
---|
35 | pathappend /opt/texlive/&texlive-year;/texmf-dist/doc/man MANPATH
|
---|
36 | pathappend /opt/texlive/&texlive-year;/texmf-dist/doc/info INFOPATH
|
---|
37 | pathappend /opt/texlive/&texlive-year;/bin/$TEXARCH
|
---|
38 |
|
---|
39 | # End texlive addition
|
---|
40 | </literal>
|
---|
41 | EOF
|
---|
42 |
|
---|
43 | unset TEXARCH</userinput></screen>
|
---|
44 |
|
---|
45 | <!-- commented, they have been removed
|
---|
46 | <note><para>The standard MANPATH and INFOPATH path are specified above to
|
---|
47 | ensure they are included. If they are already set in the boot script
|
---|
48 | procedure, the pathappend function will ensure duplicates are
|
---|
49 | removed, so including them here will do no harm.</para></note> -->
|
---|
50 |
|
---|
51 | <para>The new paths can be immediately activated by running <command>source
|
---|
52 | /etc/profile</command>.</para>
|
---|
53 |
|
---|
54 | <para>If you arrived here after installing the TeX Live binary and do not
|
---|
55 | wish to build from source, your installation is now complete.</para>
|
---|
56 |
|
---|
57 | <para>Alternatively, if this is a from-source build you can now install
|
---|
58 | <xref linkend="asymptote"/>, <xref linkend="biber"/> and <xref
|
---|
59 | linkend="xindy"/> if you wish.</para>
|
---|
60 |
|
---|
61 | </sect1>
|
---|