[eb38c8a] | 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 |
|
---|
| 12 | <title>Setting the PATH for TeX Live</title>
|
---|
| 13 |
|
---|
[fa3edfef] | 14 | <para>
|
---|
| 15 | Before starting to build TeX Live, set up your PATH so
|
---|
[eb38c8a] | 16 | that the system can properly find the files. If you set up your login
|
---|
| 17 | scripts as recommended in <xref linkend='postlfs-config-profile'/>, update
|
---|
[ed3707e] | 18 | the needed paths by creating the
|
---|
| 19 | <filename>texlive.sh</filename> script. The programs are always
|
---|
[eb38c8a] | 20 | installed in an <ARCH>-linux subdirectory and on 32-bit x86 this is
|
---|
| 21 | always i386-linux. For x86_64 and i?86 we can generate this as $TEXARCH:
|
---|
[fa3edfef] | 22 | </para>
|
---|
[eb38c8a] | 23 |
|
---|
[26e8824] | 24 | <note>
|
---|
| 25 | <para>
|
---|
| 26 | If upgrading from a previous year's version, you should manually
|
---|
[ed3707e] | 27 | edit <filename>texlive.sh</filename> to ensure that the version for
|
---|
[26e8824] | 28 | the year you wish to use is the only TeX present (some people need to
|
---|
| 29 | keep multiple years available to ensure there are no regressions in
|
---|
| 30 | their documents).
|
---|
| 31 | </para>
|
---|
| 32 | </note>
|
---|
| 33 |
|
---|
[eb38c8a] | 34 | <!-- EOF should NOT be in double quotes, we want it to evaluate $TEXARCH -->
|
---|
| 35 | <!-- this is also in texlive.xml -->
|
---|
[ed3707e] | 36 | <para>Now, create the texlive.sh script as the &root; user:</para>
|
---|
[eb38c8a] | 37 |
|
---|
[ed3707e] | 38 | <screen role="root"><userinput>TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/')
|
---|
[eb32964] | 39 |
|
---|
[ed3707e] | 40 | cat > /etc/profile.d/texlive.sh << EOF
|
---|
| 41 | <literal># Begin texlive setup
|
---|
| 42 | TEXLIVE_PREFIX=/opt/texlive/&texlive-year;
|
---|
| 43 | export TEXLIVE_PREFIX
|
---|
[eb32964] | 44 |
|
---|
[ed3707e] | 45 | pathappend \$TEXLIVE_PREFIX/texmf-dist/doc/man MANPATH
|
---|
| 46 | pathappend \$TEXLIVE_PREFIX/texmf-dist/doc/info INFOPATH
|
---|
| 47 | pathappend \$TEXLIVE_PREFIX/bin/$TEXARCH
|
---|
| 48 |
|
---|
| 49 | # End texlive setup</literal>
|
---|
[eb38c8a] | 50 | EOF
|
---|
| 51 |
|
---|
| 52 | unset TEXARCH</userinput></screen>
|
---|
| 53 |
|
---|
[fa3edfef] | 54 | <note>
|
---|
| 55 | <para>
|
---|
| 56 | The standard MANPATH and INFOPATH path are specified above to
|
---|
| 57 | ensure they are included. If they are already set in the boot script
|
---|
| 58 | procedure, the pathappend function will ensure duplicates are
|
---|
| 59 | removed, so including them here will do no harm.
|
---|
| 60 | </para>
|
---|
| 61 | </note>
|
---|
| 62 |
|
---|
[ed3707e] | 63 | <note>
|
---|
| 64 | <para>
|
---|
[1fe05eb] | 65 | The backslashes before the dollar signs in the script above are to
|
---|
[ed3707e] | 66 | facilitate a copy/paste operation. The backslashes should not
|
---|
| 67 | appear in the actual script.
|
---|
| 68 | </para>
|
---|
| 69 | </note>
|
---|
| 70 |
|
---|
[fa3edfef] | 71 | <para>
|
---|
[a504e70b] | 72 | The new paths can be immediately activated by running:
|
---|
[fa3edfef] | 73 | </para>
|
---|
[eb38c8a] | 74 |
|
---|
[a504e70b] | 75 | <screen><userinput>source /etc/profile</userinput></screen>
|
---|
| 76 |
|
---|
| 77 | <para>
|
---|
| 78 | The shared libraries will be installed into a texlive directory.
|
---|
| 79 | As the <systemitem class="username">root</systemitem> user, add it to
|
---|
| 80 | your <filename>/etc/ld.so.conf</filename>:
|
---|
| 81 | </para>
|
---|
| 82 |
|
---|
| 83 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
| 84 | <literal># Begin texlive addition
|
---|
| 85 |
|
---|
| 86 | $TEXLIVE_PREFIX/lib
|
---|
| 87 |
|
---|
| 88 | # End texlive addition</literal>
|
---|
| 89 | EOF</userinput></screen>
|
---|
| 90 |
|
---|
[fa3edfef] | 91 | <para>
|
---|
| 92 | You should now proceed either to <xref linkend="tl-installer"/> for
|
---|
[3f31914] | 93 | a binary installation of texlive, or to <xref linkend="texlive"/> to begin
|
---|
[fa3edfef] | 94 | installing from source.
|
---|
| 95 | </para>
|
---|
[eb38c8a] | 96 |
|
---|
| 97 | </sect1>
|
---|