source: pst/typesetting/tex-path.xml@ f88146e

12.1 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since f88146e was f88146e, checked in by Xi Ruoyao <xry111@…>, 3 months ago

tex-path: Set TEXMFCNF to the directory containing texmf.cnf

Without this setting, when opening a .dvi file with evince:

  • If PATH does not contain /opt/texlive/2023/bin/x86_64-linux, it just fails.
  • If PATH contains /opt/texlive/2023/bin/x86_64-linux, the file can be opened but a stupidly long time is used.

In both cases there is a warning message on the console:

warning: kpathsea: configuration file texmf.cnf not found in these
directories: ... ... ...

Setting TEXMFCNF explicitly fixes the issue (regardless PATH contains
the texlive bindir or not; though I'm not sure why libkpathsea cannot
use a reasonable default).

  • Property mode set to 100644
File size: 2.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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
49TEXMFCNF=\$TEXLIVE_PREFIX/texmf-dist/web2c
50export TEXMFCNF
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:
76 </para>
77
78<screen><userinput>source /etc/profile</userinput></screen>
79
80 <para>
81 You should now proceed either to <xref linkend="tl-installer"/> for
82 a binary installation of texlive, or to <xref linkend="texlive"/> to begin
83 installing from source.
84 </para>
85
86</sect1>
Note: See TracBrowser for help on using the repository browser.