source: pst/typesetting/tex-path.xml@ 0858e01

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 0858e01 was 1fe05eb, checked in by Pierre Labastie <pierre.labastie@…>, 20 months ago

A round of removal of eol trailing spaces

  • Property mode set to 100644
File size: 2.8 KB
Line 
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 <date>$Date$</date>
13 </sect1info>
14
15 <title>Setting the PATH for TeX Live</title>
16
17 <para>
18 Before starting to build TeX Live, set up your PATH so
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 creating the
22 <filename>texlive.sh</filename> script. The programs are always
23 installed in an &lt;ARCH&gt;-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 <note>
28 <para>
29 If upgrading from a previous year's version, you should manually
30 edit <filename>texlive.sh</filename> to ensure that the version for
31 the year you wish to use is the only TeX present (some people need to
32 keep multiple years available to ensure there are no regressions in
33 their documents).
34 </para>
35 </note>
36
37<!-- EOF should NOT be in double quotes, we want it to evaluate $TEXARCH -->
38<!-- this is also in texlive.xml -->
39 <para>Now, create the texlive.sh script as the &root; user:</para>
40
41<screen role="root"><userinput>TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/')
42
43cat &gt; /etc/profile.d/texlive.sh &lt;&lt; EOF
44<literal># Begin texlive setup
45TEXLIVE_PREFIX=/opt/texlive/&texlive-year;
46export TEXLIVE_PREFIX
47
48pathappend \$TEXLIVE_PREFIX/texmf-dist/doc/man MANPATH
49pathappend \$TEXLIVE_PREFIX/texmf-dist/doc/info INFOPATH
50pathappend \$TEXLIVE_PREFIX/bin/$TEXARCH
51
52# End texlive setup</literal>
53EOF
54
55unset TEXARCH</userinput></screen>
56
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 <note>
67 <para>
68 The backslashes before the dollar signs in the script above are to
69 facilitate a copy/paste operation. The backslashes should not
70 appear in the actual script.
71 </para>
72 </note>
73
74 <para>
75 The new paths can be immediately activated by running <command>source
76 /etc/profile</command>.
77 </para>
78
79 <para>
80 You should now proceed either to <xref linkend="tl-installer"/> for
81 a binary installation of texlive, or to <xref linkend="texlive"/> to begin
82 installing from source.
83 </para>
84
85</sect1>
Note: See TracBrowser for help on using the repository browser.