Re: file fmutil

Greg Bennett <[email protected]>
Newsgroups gmane.comp.tex.live
Message-ID <[email protected]>
Karl, yes I am.

Running a test file from the command line all references are to 
/usr/local/texlive/2025/and friends

Here's what I get in TeXstudio's Messages tab after using it on the same 
test file:

Process started: pdflatex -synctex=1 -interaction=nonstopmode "gtest".tex

kpathsea: Running mktexfmt pdflatex.fmt

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/texlive/2025/bin/x86_64-linux 
Use of uninitialized value $TEXFMROOT in concatenation (.) or string at 
/usr/local/texlive/2025/bin/x86_64-linux/mktexfmt line 19. got: 
/usr/local/texlive/2025/bin/x86_64-linux/mktexfmt: kpsewhich 
-var-value=TEXMFROOT failed, aborting early. BEGIN failed--compilation 
aborted at /usr/local/texlive/2025/bin/x86_64-linux/mktexfmt line 27.

Process exited with error(s)


It seems that $TEXFMROOT is standing in the way.

I don't know why mktexfmt is being run either. The formats were made by 
tl during installation.

Thanks for the help,
Greg

On 2025-11-26 17:18, Karl Berry wrote:
> Greg, I wonder if PATH that fmtutil is running with is somehow not the
> same PATH as you are running from the command line.
>
> Are you still trying to get this to work under TeXstudio (or another
> frontend), or does the error happen on the command line? If it's only
> TeXstudio, I would guess you need to configure the frontend, somehow.
> (I've never used them, so don't know specifics.)
>
> There's also a question of why mktexfmt is being run at all, since
> installation normally creates all the .fmt files (unless you explicitly
> disabled that). Which also, together with your question about
> /usr/share, sounds like the frontend is not finding your TL25
> installation, and is instead using what's on the system
> (/usr/bin/... instead of /usr/local/texlive/2025/...).
>
> Finally, can you try adding these two debugging lines to your fmtutil.pl
> and show us what the output is? (I rather suspect a different fmtutil.pl
> is being called and you won't see this output.)
>
> --- fmtutil.pl	(revision 76944)
> +++ fmtutil.pl	(working copy)
> @@ -17,2 +17,4 @@ BEGIN {
>     $TEXMFROOT = `kpsewhich -var-value=TEXMFROOT`;
> +  warn "PATH=$ENV{PATH}\n";
> +  warn "got: $TEXMFROOT\n";
>     if ($?) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.