<div dir="ltr">Reinhard, <br><br>echo $SELFAUTOLOC gives an empty line. There were no tex-related variables defined when I ran env.<br><br>Vladimir, Here's the requested output:<br><br>[ben@tp4 ~]$ command -v pdflatex<br>/usr/bin/pdflatex<br>[ben@tp4 ~]$ command -v kpsewhich<br>/usr/bin/kpsewhich<br>[ben@tp4 ~]$ which pdflatex<br>/usr/bin/pdflatex<br>[ben@tp4 ~]$ which kpsewhich<br>/usr/bin/kpsewhich<br>[ben@tp4 ~]$ whereis pdflatex<br>pdflatex: /usr/bin/pdflatex /usr/local/texlive/2020/bin/x86_64-linux/pdflatex /usr/share/man/man1/pdflatex.1.gz<br>[ben@tp4 ~]$ whereis kpsewhich<br>kpsewhich: /usr/bin/kpsewhich /usr/local/texlive/2020/bin/x86_64-linux/kpsewhich /usr/share/man/man1/kpsewhich.1.gz<br>[ben@tp4 ~]$ env | grep -i tex<br>MANPATH=:/usr/local/texlive/2020/texmf-dist/doc/man<br>INFOPATH=:/usr/local/texlive/2020/texmf-dist/doc/info<br>PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/ben/.emacs.d/bin:/usr/local/texlive/2020/bin/x86_64-linux<br><br><div>So I think your hunch is right! I have the arch texlive-bin package installed in addition to the <a href="http://tug.org">tug.org</a> version. I just looked it up with `pacman -Qi texlive-bin`, and it came as a dependency of xournalpp which I installed before the <a href="http://tug.org">tug.org</a> version. Now, I just ran:</div><div><br></div><div>$ /usr/local/texlive/2020/bin/x86_64-linux/latex small2e<br></div><div><br></div><div>and it looks like it worked. Then, I changed my PATH-setting command to:</div><div><br></div><div>export PATH="/home/ben/.emacs.d/bin:/usr/local/texlive/2020/bin/x86_64-linux:$PATH" </div><div><br></div><div>So that the previous $PATH is at the back instead of the front... and then running just:</div><div><br></div><div>$latex small2e</div><div><br></div><div>worked just fine! I'm not sure if i should uninstall the texlive-bin package or not. I don't want to break xournalpp which I use for work every day.</div><div><br></div><div>Thanks,</div><div>Ben Smith</div></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 18, 2020 at 4:39 PM Vladimir Lomov <<a href="mailto:lomov.vl@yandex.ru">lomov.vl@yandex.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
** Ben Smith <<a href="mailto:bensmithmath@gmail.com" target="_blank">bensmithmath@gmail.com</a>> [2020-09-18 14:31:42 -0700]:<br>
<br>
> Hi, I installed texlive 2020 last week on my thinkpad x1 yoga (gen 4)<br>
> last week, running arch linux. I used the download script from<br>
> <a href="http://tug.org" rel="noreferrer" target="_blank">tug.org</a>. It successfully installed, but is not working. kpathsea seems<br>
> to be looking for files in the wrong place, and can't find texmf.cnf<br>
> or latex.fmt or anything. After some digging around I found that<br>
> SELFAUTOLOC is set to /usr/bin, but my whole texlive is installed in<br>
> /usr/local/texlive. (I get this by running kpsewhich<br>
> -var-value=SELFAUTOLOC)<br>
<br>
Please provide more details.<br>
<br>
Show output of (I assume that your shell is bash or zsh):<br>
$ command -v pdflatex<br>
$ command -v kpsewhich<br>
$ which pdflatex<br>
$ which kpsewhich<br>
$ whereis pdflatex<br>
$ whereis kpsewhich<br>
$ env | grep -i tex<br>
<br>
> On my older computer with texlive working, with everything installed<br>
> in the same directories, SELFAUTOLOC is<br>
> /usr/local/texlive/2020/bin/x86_64-linux. This computer is also<br>
> running arch linux, and I installed texlive from the <a href="http://tug.org" rel="noreferrer" target="_blank">tug.org</a> script<br>
> three months ago.<br>
<br>
> It also seems like SELFAUTOPARENT and SELFAUTOGRANDPARENT are wrong.<br>
<br>
> texmf.cnf says that these variables are generated in<br>
> kpathsea/progname.c but I don't seem to have that file to check.<br>
<br>
I'm Archlinux user too and use TeX Live from TUG as well as has texlive*<br>
packages installed by pacman (Archlinux package manager).<br>
<br>
> Thanks!<br>
> Ben Smith<br>
<br>
> PS I tried to report a bug following the instructions at<br>
> <a href="https://tug.org/tetex/html/kpathsea/kpath_13.html#SEC13" rel="noreferrer" target="_blank">https://tug.org/tetex/html/kpathsea/kpath_13.html#SEC13</a> but the<br>
> address <a href="mailto:tex-k@cs.umb.edu" target="_blank">tex-k@cs.umb.edu</a> was not found.<br>
<br>
That is pitty but I doubt that the problem is with kpathsea.<br>
<br>
---<br>
WBR, Vladimir Lomov<br>
<br>
-- <br>
Toothpaste never hurts the taste of good scotch.<br>
</blockquote></div>