You are not logged in.

#1 2023-08-24 15:17:11

no'irah
Member
Registered: 2023-08-21
Posts: 1

`kpathsea` looks for wrong directory in some instances

Hi,

A while ago, I tried updating my computer on Arch. I got an error

installing texlive-core (2023.66587-1) breaks dependency 'texlive-core<2023' required by tllocalmgr

(or something quite similar). This Link suggested I remove `tllocalmgr`, update/upgrade then reinstall `tllocalmgr`.

However, this solution didn't work. `tllocalmgr` was no longer working, and I was having a hard time using `latexmk` with `tlmgr`. Ultimately, I deleted all of my `texlive` packages from `pacman`, cleaned all `texlive`, and then reinstalled the native `texlive` in `perl` only, which seems to be the more robust approach (see here). This way, latexmk (and pdflatex) works from the terminal, and in a neovim instance launched from a fresh terminal.

However, when I launch a neovim instance from `ranger` with

!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php, flag t = nvim -- "$@"

then whenever I compile it doesn't work (fails without an error message). It works if I open a terminal inside the neovim-opened instance…

I have more details when using `tikzit`: I have a `kpathsea` error:

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

so I found my `texmf.cnf` file and did a `sudo ln -s /usr/local/texlive/2023/texmf-dist /usr/share` to get rid of that (not clean, I know). Nonetheless, I'm faced with another error:

kpathsea: Running mktexfmt pdflatex.fmt
mktexfmt: No such file or directory
I can't find the format file `pdflatex.fmt'!

I tried any and every fix I found on the "[SOLVED]" forum threads: `fmtutil-sys --all`, `tlmgr rehash`, `tlmgr update --all`, but I can't get it to work. I have no idea what to do anymore.

Probably relevant outputs:

$ kpsewhich pdflatex.fmt --all
$ 
$ which tex
$ /usr/local/texlive/2023/bin/x86_64-linux/tex

Relevant parts of my `.zshrc`:

export PATH=$HOME/.local/bin:$PATH
export PATH=/usr/local/texlive/2023/bin/x86_64-linux:$PATH
export MANPATH=/usr/local/texlive/2023/texmf-dist/doc/man
export INFOPATH=/usr/local/texlive/2023/texmf-dist/doc/info
export TEXMFCNF=/usr/local/texlive/2023:
export TEXMFDIST=/usr/share/texmf-dist:

From `neofetch`:

Kernel: 6.4.11-arch2-1

I have a `texlive-bin` installed because of it's dependencies with `dvisvgm` and `xournalpp-git`.

Offline

Board footer

Powered by FluxBB