[tlbuild] Can't locate mktexlsr.pl]

Ken Moffat zarniwhoop at ntlworld.com
Fri Feb 12 01:26:16 CET 2016

On Thu, Feb 11, 2016 at 11:26:54PM +0000, Ken Moffat wrote:
> Whoops, thought I was replying to the list (the headers only showed
> the list when I read it), but it went to YuGiOhJCJ.  Forwarding to
> the list now.
> On Thu, Feb 11, 2016 at 07:45:28PM +0100, YuGiOhJCJ Mailing-List wrote:
> > Hello,
> > 
> > I would like to build texlive-20150521-source on Slackware 14.1.
> > I followed the LFS instructions [1].
> > 
> > The result is:
> > $ sudo mktexlsr
> > mktexlsr: Done.
> > $ sudo fmtutil-sys --all
> > Can't locate mktexlsr.pl in @INC (@INC contains: /opt/texlive/tlpkg /opt/texlive/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 /opt/texlive/2015/bin/fmtutil line 23.

Well, now that I am back at a desktop box I have three comments:

1. It worked for me.  I log the output from the fmtutil-sys
invocation separately, because there is so much of it (over 12000
lines or 579k : I don't think I can attach that much, but it starts

fmtutil: fmtutil is using the following fmtutil.cnf files (in
precedence order):
fmtutil:   /opt/texlive/2015/texmf-dist/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing
fmtutil:   /opt/texlive/2015/texmf-config/web2c/fmtutil.cnf
fmtutil: running `pdftex -ini  -jobname=pdftex -progname=pdftex
-translate-file=cp227.tcx *pdfetex.ini' ...
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015 -
 restricted \write18 enabled.
entering extended mode

2. We (BLFS) do not - in general - expect you to use sudo to run the
root steps, we sort of assume you use 'su' when instructed to do
things as root - but I doubt that is relevant.

3. I note that @INC contains various /opt/texlive/ dirctories : it
ought to contain /opt/texlive/2015 for the 2015 year.

In the book. we begin the compilation with:

../configure                                        \
    --prefix=/opt/texlive/2015                      \
    --bindir=/opt/texlive/2015/bin/$TEXARCH         \
    --datarootdir=/opt/texlive/2015                 \
    --includedir=/opt/texlive/2015/include          \
    --infodir=/opt/texlive/2015/texmf-dist/doc/info \
    --libdir=/opt/texlive/2015/lib                  \
    --mandir=/opt/texlive/2015/texmf-dist/doc/man   \

I first assumed you missed the year in one or more of those
switches, but your prefix appears to have been correct from what

> > BEGIN failed--compilation aborted at /opt/texlive/2015/bin/fmtutil line 25.
> > 
> > The mktexlsr.pl file is not found.
> > Here is the correct location for this file:
> > $ find /opt/texlive -name "mktexlsr.pl"
> > /opt/texlive/2015/texmf-dist/scripts/texlive/mktexlsr.pl
> > 
> > This directory "/opt/texlive/2015/texmf-dist/scripts/" is not listed above but we can see "/opt/texlive/texmf-dist/scripts/texlive" that is similar.
> > 
> > Why following these LFS instructions "fmtutil-sys" is looking at an incorrect location to find the mktexlsr.pl file please?
> > 
> > Thank you.
> > Best regards.
> > 
> > [1] http://www.linuxfromscratch.org/blfs/view/svn/pst/texlive.html

Ah - I suspect you fubar'd the install of texmf : the command we use
is -

tar -xf ../../texlive-20150523-texmf.tar.xz -C /opt/texlive/2015

(for tlbuild: the ../../ is because the whole of the blfs book
assumes all the source files, and your working directory, are in
/sources).  I suspect you missed the /2015 when you untarred texmf.
If so, I suppose that if you run, as root,
 mv -v /opt/texlive/texmf-dist /opt/texlive/2015/
it will fix it.

And hopefully, everybody else here can go back to believing that TeX
lives in /usr || /usr/local || ~/ (delete as appropriate).

Please reply if you think there is still a problem.  Thanks.

This email was written using 100% recycled letters.

More information about the tlbuild mailing list