I run an Arch system and used the Texlive-distribution provided by the distribution package manager. However, now I encountered a bug and decided to switch to a native Texlive installation, which I installed. I added /usr/local/texlive/2023/bin/x86_64-linux to the PATH as the install script said, and similar for MANPATH and INFOPATH, and I can run tlmgr in the terminal, but it seems latex hasn't picked up on the PATH-change, since, if I try to compile something, I get the following error message:
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.
This is LuaHBTeX, Version 1.17.0 (TeX Live 2023/Arch Linux)
system commands enabled.
kpathsea: Running mktexfmt lualatex.fmt
mktexfmt: No such file or directory
I can't find the format file `lualatex.fmt'!
I can find texmf.cnf in /usr/local/texlive/2023/ and /usr/local/texlive/2023/texmf-dist/web2c/ and lualatex.fmt in /usr/local/texlive/2023/texmf-var/web2c/luahbtex/lualatex.fmt, but apparently kpathsea can't. How can I re-configure Latex to the new location of my Texlive-installation? I tried
export TEXMF=:/usr/local/texlive/2023
export TEXMF=:/usr/local/texlive/2023/texmf-dist
export TEXINPUTS=/usr/local/texlive/2023//
but none of them worked.
type texshould give your texlive/2023 path (assuming bash) orwhich texdon't set TEXMF or TEXINPUTS (certainly not to those values) just set PATH – David Carlisle Oct 03 '23 at 10:32This is LuaHBTeX, Version 1.17.0 (TeX Live 2023/Arch Linux)is the system tex not the texlive 2023 from tug you installed. – David Carlisle Oct 03 '23 at 10:44type texalso points to/usr/bin/tex, not the new texlive install. It's no wonder it can't find anything there because I uninstalled the system texlive packages in hopes of avoiding something like this. – Alexander Praehauser Oct 03 '23 at 10:48/usr/local/texlive/2023/bin/x86_64-linuxat the front. What doesecho $PATHsay? – David Carlisle Oct 03 '23 at 10:50/home/alex/.local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/local/texlive/2023/bin/x86_64-linux:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl– Alexander Praehauser Oct 03 '23 at 10:52/usr/local/texlive/2023/bin/x86_64-linux/bin:/usr/bin:/usr/local/sbin:/usr/local/bin::/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perlbut the error persists. – Alexander Praehauser Oct 03 '23 at 11:09x86_64-linux. I've corrected it. The previous error is gone, but now I getlstat(./tex) failed: ./tex: No such file or directory kpathsea: Can't get directory of program name: ./tex. – Alexander Praehauser Oct 03 '23 at 11:12(TeX Live 2023/Arch Linux)it should showThis is LuaHBTeX, Version 1.17.0 (TeX Live 2023)– David Carlisle Oct 03 '23 at 11:12./tex? – David Carlisle Oct 03 '23 at 11:13/usr/local/texlive/2023/bin/x86_64-linux/mktexfmt: kpsewhich -var-value=TEXMFROOT failed, aborting early. BEGIN failed--compilation aborted at /usr/local/texlive/2023/bin/x86_64-linux/mktexfmt line 25. I can't find the format filelatex.fmt'!``. About the version it saysThis is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/Arch Linux) (preloaded format=latex). ` – Alexander Praehauser Oct 03 '23 at 11:18echo $TEXMFreturns nothing. – Alexander Praehauser Oct 03 '23 at 11:36kpsewhich -var-value TEXMFDISTorkpsewhich -var-value TEXMFMAIN?echo $TEXMFalways returns nothing. – lukeflo Oct 03 '23 at 11:52/usr/local/texlive/2023/bin/x86_64-linuxto PATH I created another grammar error. Now that I corrected it, it works. Thanks again! – Alexander Praehauser Oct 03 '23 at 12:06/usr/local/texlive/2023/bin/x86_64-linuxto PATH, it was just that I made another error in grammar when I did that. – Alexander Praehauser Oct 03 '23 at 12:08