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