<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hello,</div>
<div class="moz-cite-prefix">try to put the texlive path at the
beginning of your PATH; in your setup /usr/bin/latex is found
first.</div>
<div class="moz-cite-prefix">Good luck</div>
<div class="moz-cite-prefix">Alois<br>
</div>
<div class="moz-cite-prefix">Am 17.01.2022 um 13:07 schrieb Georg
Rast:<br>
</div>
<blockquote type="cite"
cite="mid:bf4afe0b-b2d0-8273-6ee6-824f6ce061a4@web.de">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Hey Everyone,</p>
<p>I ran into a problem setting up texlive on a new machine. I
can't get PATH setup correctly it seems.<br>
</p>
<p>Here is what i get when i try to run 'texdoc bibtex' this is
the output i get:<br>
</p>
<p><br>
</p>
<blockquote>
<p><samp>warning: kpathsea: configuration file texmf.cnf not
found in these directories:
/usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c://texmf-local/web2c://texmf-dist/web2c://texmf/web2c.</samp><samp><br>
</samp><samp>Info: Running Texdoc not installed in the current
TEXMFMAIN.</samp><samp><br>
</samp><samp>/usr/local/texlive/2021/bin/x86_64-linux/texdoc:43:
module 'texdoclib' not found:</samp><samp><br>
</samp><samp> no field package.preload['texdoclib']</samp><samp><br>
</samp><samp> [kpse lua searcher] file not found:
'texdoclib'</samp><samp><br>
</samp><samp> [kpse C searcher] file not found: 'texdoclib'</samp><samp><br>
</samp></p>
</blockquote>
<p><br>
</p>
<p>It's just looking through a bunch of standard directories.
However i did adjust PATH to include my texlive install
'/usr/local/texlive/2021/bin/x86_64-linux'</p>
<p>Here is the output of 'printenv PATH':<br>
</p>
<p><br>
</p>
<p><samp>/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/local/texlive/2021/bin/x86_64-linux:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl</samp></p>
<p><br>
</p>
<p>Running latex itself doesn't work either. If i try to use it on
a example file ('latex /tmp/example.tex') i get this:<br>
</p>
<p><br>
</p>
<blockquote>
<p><samp><cite>latex /tmp/example.tex</cite></samp><samp><cite><br>
</cite></samp><samp><cite>warning: kpathsea: configuration
file texmf.cnf not found in these directories:
/usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c://texmf-local/web2c://texmf-dist/web2c://texmf/web2c.</cite></samp><samp><cite><br>
</cite></samp><samp><cite>This is pdfTeX, Version
3.141592653-2.6-1.40.23 (TeX Live 2021/Arch Linux)
(preloaded format=latex)</cite></samp><samp><cite><br>
</cite></samp><samp><cite><br>
</cite></samp><samp><cite>kpathsea: Running mktexfmt
latex.fmt</cite></samp><samp><cite><br>
</cite></samp><samp><cite>warning: kpathsea: configuration
file texmf.cnf not found in these directories:
/usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c://texmf-local/web2c://texmf-dist/web2c://texmf/web2c.</cite></samp><samp><cite><br>
</cite></samp><samp><cite>/usr/local/texlive/2021/bin/x86_64-linux/mktexfmt:
kpsewhich -var-value=TEXMFROOT failed, aborting early.</cite></samp><samp><cite><br>
</cite></samp><samp><cite>BEGIN failed--compilation aborted
at /usr/local/texlive/2021/bin/x86_64-linux/mktexfmt line
25.</cite></samp><samp><cite><br>
</cite></samp><samp><cite>I can't find the format file
`latex.fmt'!</cite></samp></p>
</blockquote>
<p><br>
</p>
<p><br>
</p>
<p>My gut feeling is that some other program i installed also came
with the standard texlive installation included in my linux
distro (Manjaro).</p>
<p>When i run 'which latex' i get:</p>
<p><br>
</p>
<blockquote>
<p><samp> /usr/bin/latex</samp><br>
</p>
</blockquote>
<p><br>
</p>
<p>Which is itself just a symlink to <br>
</p>
<p><br>
</p>
<blockquote>
<p><samp>/usr/bin/pdftex</samp></p>
</blockquote>
<p><br>
</p>
<p>The setup was exactly the same i had on my old machine and
everything worked fine there. I'm honestly a little lost right
now<br>
</p>
<p>Any tips on how i could resolve this?</p>
<p>Greetings</p>
<p>George<br>
</p>
</blockquote>
<p><br>
</p>
</body>
</html>