[tlbuild] mktexfmt pdflatex.fmt does not find the mktexlsr.pl file

YuGiOhJCJ Mailing-List yugiohjcj-mailinglist at laposte.net
Mon Jan 25 20:11:36 CET 2016


So, that was how I compiled before:
$ ../configure --prefix=/usr --disable-multiplatform
$ make

And that's how I compile now:
$ ../configure --prefix=/usr --disable-multiplatform --disable-native-texlive-build --datarootdir=/usr/share
$ make

I have added the --disable-native-texlive-build and --datarootdir=/usr/share options.

But the result is the same:
$ pdflatex test.tex 
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex)
 restricted \write18 enabled.

kpathsea: Running mktexfmt pdflatex.fmt
Can't locate mktexlsr.pl in @INC (@INC contains: //tlpkg //texmf-dist/scripts/texlive /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /usr/bin/mktexfmt line 23.
BEGIN failed--compilation aborted at /usr/bin/mktexfmt line 25.
I can't find the format file `pdflatex.fmt'!

The only texmf.cnf file is here:
$ find /usr/share/texmf-dist/ -name "texmf.cnf"

But this file is not the one provided by texlive.
Indeed, there is exactly the same file in texlive-texmf.
So, this texmf.cnf file is overwritten and I am using the one from texlive-texmf.

This file is attached to this e-mail.

I am wondering if I should firstly install texlive or texlive-texmf.
As some files are overwritten, it could have an impact on the behavior of texlive.

Anyway do you see why I still get this error?

On Sun, 24 Jan 2016 21:55:14 +0900
Norbert Preining <preining at logic.at> wrote:

> > Any proper way to do that?
> Did you compile with:
> 	--disable-native-texlive-build
> and probably you also need
> 	--datarootdir=/usr/share
> so that texmf-dist is searched in /usr/share/texmf-dist
> kpse needs to find tan initial texmf.cnf file and searches for 
> it in a set of compile time defaults. These defaults depend on
> the above options as well as what is in 
> 	texk/kpathsea/texmf.cnf
> in the sources
> After it has found the initial texmf.cnf, everything can be 
> overridden in the texmf.cnf, but finding the first one is a problem.
> Norbert
> ------------------------------------------------------------------------
> PREINING, Norbert                               http://www.preining.info
> JAIST, Japan                                 TeX Live & Debian Developer
> GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13
> ------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: texmf.cnf
Type: application/octet-stream
Size: 31983 bytes
Desc: not available
URL: <http://tug.org/pipermail/tlbuild/attachments/20160125/87f7bf32/attachment-0001.obj>

More information about the tlbuild mailing list