source: pst/typesetting/tex-path.xml@ 11c720a

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 11c720a was a504e70b, checked in by Pierre Labastie <pierre.labastie@…>, 14 months ago

Move the texlive addition to ld.so.conf

We usually put those additions in the page where we define all the
paths. So move this one to "Setting the PATH for TeX Live". This
also prevents having to edit the texlive script in jhalfs (to
remove the addition when reinstalling).

  • Property mode set to 100644
File size: 3.1 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
12 <title>Setting the PATH for TeX Live</title>
13
14 <para>
15 Before starting to build TeX Live, set up your PATH so
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
18 the needed paths by creating the
19 <filename>texlive.sh</filename> script. The programs are always
20 installed in an &lt;ARCH&gt;-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:
22 </para>
23
24 <note>
25 <para>
26 If upgrading from a previous year's version, you should manually
27 edit <filename>texlive.sh</filename> to ensure that the version for
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
34<!-- EOF should NOT be in double quotes, we want it to evaluate $TEXARCH -->
35<!-- this is also in texlive.xml -->
36 <para>Now, create the texlive.sh script as the &root; user:</para>
37
38<screen role="root"><userinput>TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/')
39
40cat &gt; /etc/profile.d/texlive.sh &lt;&lt; EOF
41<literal># Begin texlive setup
42TEXLIVE_PREFIX=/opt/texlive/&texlive-year;
43export TEXLIVE_PREFIX
44
45pathappend \$TEXLIVE_PREFIX/texmf-dist/doc/man MANPATH
46pathappend \$TEXLIVE_PREFIX/texmf-dist/doc/info INFOPATH
47pathappend \$TEXLIVE_PREFIX/bin/$TEXARCH
48
49# End texlive setup</literal>
50EOF
51
52unset TEXARCH</userinput></screen>
53
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
63 <note>
64 <para>
65 The backslashes before the dollar signs in the script above are to
66 facilitate a copy/paste operation. The backslashes should not
67 appear in the actual script.
68 </para>
69 </note>
70
71 <para>
72 The new paths can be immediately activated by running:
73 </para>
74
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 &gt;&gt; /etc/ld.so.conf &lt;&lt; EOF
84<literal># Begin texlive addition
85
86$TEXLIVE_PREFIX/lib
87
88# End texlive addition</literal>
89EOF</userinput></screen>
90
91 <para>
92 You should now proceed either to <xref linkend="tl-installer"/> for
93 a binary installation of texlive, or to <xref linkend="texlive"/> to begin
94 installing from source.
95 </para>
96
97</sect1>
Note: See TracBrowser for help on using the repository browser.