[tlbuild] Can't locate mktexlsr.pl]

YuGiOhJCJ Mailing-List yugiohjcj-mailinglist at laposte.net
Fri Feb 12 13:17:35 CET 2016


That's my answer for you 3 comments:
1. Happy to know that it works for you.
2. Yeah, I am using "sudo" instead of "su" but it will not help me to solve my problem.
3. Yeah, the year "2015" is missing from the path.
That's exactly the compilation options I am using and as you can see I wrote the year "2015" for each path:
---
../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   \
    --disable-native-texlive-build                  \
    --disable-static                                \
    --enable-shared                                 \
    --with-system-cairo                             \
    --with-system-fontconfig                        \
    --with-system-freetype2                         \
    --with-system-gmp                               \
    --with-system-icu                               \
    --with-system-libgs                             \
    --with-system-libpng                            \
    --with-system-mpfr                              \
    --with-system-pixman                            \
    --with-system-poppler                           \
    --with-system-xpdf                              \
    --with-system-zlib                              \
    --with-banner-add=" - BLFS"
---
For texmf, I am also using the year "2015" in the path:
---
tar xvf ${DIR}.tar.xz -C ${DESTDIR}/opt/texlive/2015 --strip-components=1
---
So, I still don't understand why "fmtutil-sys" is looking at an incorrect location to find the mktexlsr.pl file.

That's the content of my directories:
$ ls /opt/texlive/
2015
$ ls /opt/texlive/2015/
bin  include  lib  texmf-dist  tlpkg

I have attached the two build scripts that I am using so you can test if it works on your machine too (they do not contain Slackware specific command lines).
The first one is building texlive and the second one is building texmf.
Maybe they contain relevant information to understand why I got this problem.

On Fri, 12 Feb 2016 00:26:16 +0000
Ken Moffat <zarniwhoop at ntlworld.com> wrote:

> 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
> changes:
> 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 -
> BLFS) (INITEX)
>  restricted \write18 enabled.
>  (/opt/texlive/2015/texmf-dist/web2c/cp227.tcx)
> entering extended mode
> (/opt/texlive/2015/texmf-dist/tex/plain/config/pdfetex.ini
> 
> 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
> follows:
> 
> > > 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
> --strip-components=1
> 
> (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.
> 
> ĸen
> -- 
> This email was written using 100% recycled letters.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: texlive-20150521.sh
Type: application/octet-stream
Size: 1854 bytes
Desc: not available
URL: <http://tug.org/pipermail/tlbuild/attachments/20160212/0d9e17e7/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: texlive-texmf-20150523.sh
Type: application/octet-stream
Size: 239 bytes
Desc: not available
URL: <http://tug.org/pipermail/tlbuild/attachments/20160212/0d9e17e7/attachment-0001.obj>


More information about the tlbuild mailing list