2014-10-22 07:24:32 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="tex-path" xreflabel="Setting the PATH for TeX Live">
|
|
|
|
<?dbhtml filename="tex-path.html"?>
|
|
|
|
|
|
|
|
|
|
|
|
<title>Setting the PATH for TeX Live</title>
|
|
|
|
|
2020-03-25 20:06:24 +08:00
|
|
|
<para>
|
|
|
|
Before starting to build TeX Live, set up your PATH so
|
2014-10-22 07:24:32 +08:00
|
|
|
that the system can properly find the files. If you set up your login
|
|
|
|
scripts as recommended in <xref linkend='postlfs-config-profile'/>, update
|
2022-07-31 12:07:10 +08:00
|
|
|
the needed paths by creating the
|
|
|
|
<filename>texlive.sh</filename> script. The programs are always
|
2014-10-22 07:24:32 +08:00
|
|
|
installed in an <ARCH>-linux subdirectory and on 32-bit x86 this is
|
|
|
|
always i386-linux. For x86_64 and i?86 we can generate this as $TEXARCH:
|
2020-03-25 20:06:24 +08:00
|
|
|
</para>
|
2014-10-22 07:24:32 +08:00
|
|
|
|
2020-04-13 06:14:10 +08:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
If upgrading from a previous year's version, you should manually
|
2022-07-31 12:07:10 +08:00
|
|
|
edit <filename>texlive.sh</filename> to ensure that the version for
|
2020-04-13 06:14:10 +08:00
|
|
|
the year you wish to use is the only TeX present (some people need to
|
|
|
|
keep multiple years available to ensure there are no regressions in
|
|
|
|
their documents).
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
2014-10-22 07:24:32 +08:00
|
|
|
<!-- EOF should NOT be in double quotes, we want it to evaluate $TEXARCH -->
|
|
|
|
<!-- this is also in texlive.xml -->
|
2022-07-31 12:07:10 +08:00
|
|
|
<para>Now, create the texlive.sh script as the &root; user:</para>
|
2014-10-22 07:24:32 +08:00
|
|
|
|
2022-07-31 12:07:10 +08:00
|
|
|
<screen role="root"><userinput>TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/')
|
2015-04-13 18:56:22 +08:00
|
|
|
|
2022-07-31 12:07:10 +08:00
|
|
|
cat > /etc/profile.d/texlive.sh << EOF
|
|
|
|
<literal># Begin texlive setup
|
|
|
|
TEXLIVE_PREFIX=/opt/texlive/&texlive-year;
|
|
|
|
export TEXLIVE_PREFIX
|
2015-04-13 18:56:22 +08:00
|
|
|
|
2022-07-31 12:07:10 +08:00
|
|
|
pathappend \$TEXLIVE_PREFIX/texmf-dist/doc/man MANPATH
|
|
|
|
pathappend \$TEXLIVE_PREFIX/texmf-dist/doc/info INFOPATH
|
|
|
|
pathappend \$TEXLIVE_PREFIX/bin/$TEXARCH
|
|
|
|
|
|
|
|
# End texlive setup</literal>
|
2014-10-22 07:24:32 +08:00
|
|
|
EOF
|
|
|
|
|
|
|
|
unset TEXARCH</userinput></screen>
|
|
|
|
|
2020-03-25 20:06:24 +08:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
The standard MANPATH and INFOPATH path are specified above to
|
|
|
|
ensure they are included. If they are already set in the boot script
|
|
|
|
procedure, the pathappend function will ensure duplicates are
|
|
|
|
removed, so including them here will do no harm.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
2022-07-31 12:07:10 +08:00
|
|
|
<note>
|
|
|
|
<para>
|
2022-09-11 23:31:48 +08:00
|
|
|
The backslashes before the dollar signs in the script above are to
|
2022-07-31 12:07:10 +08:00
|
|
|
facilitate a copy/paste operation. The backslashes should not
|
|
|
|
appear in the actual script.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
2020-03-25 20:06:24 +08:00
|
|
|
<para>
|
2023-04-03 18:31:40 +08:00
|
|
|
The new paths can be immediately activated by running:
|
2020-03-25 20:06:24 +08:00
|
|
|
</para>
|
2014-10-22 07:24:32 +08:00
|
|
|
|
2023-04-03 18:31:40 +08:00
|
|
|
<screen><userinput>source /etc/profile</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The shared libraries will be installed into a texlive directory.
|
|
|
|
As the <systemitem class="username">root</systemitem> user, add it to
|
|
|
|
your <filename>/etc/ld.so.conf</filename>:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
|
|
|
<literal># Begin texlive addition
|
|
|
|
|
|
|
|
$TEXLIVE_PREFIX/lib
|
|
|
|
|
|
|
|
# End texlive addition</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
2020-03-25 20:06:24 +08:00
|
|
|
<para>
|
|
|
|
You should now proceed either to <xref linkend="tl-installer"/> for
|
2015-06-24 07:14:01 +08:00
|
|
|
a binary installation of texlive, or to <xref linkend="texlive"/> to begin
|
2020-03-25 20:06:24 +08:00
|
|
|
installing from source.
|
|
|
|
</para>
|
2014-10-22 07:24:32 +08:00
|
|
|
|
|
|
|
</sect1>
|