Re: texlive2025, TeXstudio, reinstallation

Greg Bennett <[email protected]>
Newsgroups gmane.comp.tex.live
Message-ID <[email protected]>
Inserting /usr/local/texlive/2025/bin/x86_64-linux in the Commands 
($PATH) of Build Options (Show advanced options) of the Build element 
and trying Build & View gives the same dialog but rather more details in 
the messages:

kpathsea: Running mktexfmt pdflatex.fmt

/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 25.

Process exited with error(s)

After chasing some links, this comes from the file 
/usr/local/texlive/2025/texmf-dist/scripts/fmtutil.pl

Its contents down to line 25 are:

my $TEXMFROOT; BEGIN { $^W = 1; $TEXMFROOT = `kpsewhich 
-var-value=TEXMFROOT`; if ($?) { die "$0: kpsewhich -var-value=TEXMFROOT 
failed, aborting early.\n"; } chomp($TEXMFROOT); unshift(@INC, 
"$TEXMFROOT/tlpkg", "$TEXMFROOT/texmf-dist/scripts/texlive"); require 
"mktexlsr.pl"; TeX::Update->import(); }

kpsewhich -var-value=TEXFMROOT returns /usr/local/texlive/2025 whereas 
echo $TEXMFROOT returns nothing

I don't speak perl, unfortunately, but my sense of those lines is that 
if what kpsewhich .. returns does not match whatever

my $TEXMFROOT; returns, then die with the message above, as it does.

If in the shell I export TEXFMROOT=/usr/local/texlive/2025

and then re-try I still get the same set of error messages.

Perhaps there is something else I need to do to establish TEXMFROOT (or 
$TEXMFROOT) at the texlive level before fmtutil.pl

gets to look at it.

Advice/assistance most welcome

Cheers

Greg



On 2025-11-22 21:28, Greg Bennett wrote:
> Alex thanks for this. I tried various entries under $PATH in the 
> configure page for TeXstudio.
> I even rebooted in between them.
>
> Alas, I still get the same messages from TeXstudio
>
> Thanks again for looking
>
> Greg
>
> On 2025-11-22 19:34, Axel E. Retif wrote:
>> On 11/22/25 17:20, Greg Bennett wrote:
>>
>>>  From a terminal in my home directory I ran
>>> pdflatex gtest.tex
>>> which told me it was using Version 3,141592653-2,6-1.40.28 (TeX Live 
>>> 2025) (preloaded format=pdflatex)
>>> and ran to completion with the expected gtest.pdf. This suggests 
>>> that the TeXlive installation was found.
>>
>> Indeed.
>>
>>
>>> I deleted that ,pdf, fired up TeXstudio, opened gtest.tex, hit Build 
>>> & View from its Tools menu
>>> to get an immediate dialog:
>>>
>>> Could not start Build & View:PdfLatex:
>>> pdflatex -synctex=1 -interaction=nonstopmode "gtest".tex
>>
>> If I remember correctly, TeXstudio has its own section to configure 
>> the $PATH.
>>
>> The terminal takes the $PATH from what you specified according to TUG 
>> instructions, but I think TeXstudio comes preconfigured for TeX et 
>> al. to the usual path of Linux distributions.
>>
>> Here is an (very old) reply that deals with the issue:
>>
>> https://stackoverflow.com/questions/24615026/adding-texlive-to-texstudios-understanding-of-path 
>>
>>
>> Maybe it can help you.
>>
>>
>> Best regards
>>
>> Axel
>>
>
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.