[tlbuild] Can't locate mktexlsr.pl]

YuGiOhJCJ Mailing-List yugiohjcj-mailinglist at laposte.net
Mon Feb 15 14:38:17 CET 2016


On Sun, 14 Feb 2016 16:34:47 +0000
Ken Moffat <zarniwhoop at ntlworld.com> wrote:

> On Sun, Feb 14, 2016 at 05:22:17PM +0100, YuGiOhJCJ Mailing-List wrote:
> > On Fri, 12 Feb 2016 17:11:09 +0000
> > Ken Moffat <zarniwhoop at ntlworld.com> wrote:
> > 
> > > > 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.
> > > > 
> > > 
> > > fmtutil-sys invokes fmtutil (texmf-dist/scripts/texlive/fmtutil.pl).
> > > 
> > > In that is the line
> > > $TEXMFROOT = `kpsewhich -var-value=TEXMFROOT`;
> > > 
> > > If (as a user) I try that, it includes the year:
> > > ken at deluxe ~ $kpsewhich -var-value=TEXMFROOT
> > > /opt/texlive/2015
> > > 
> > > Do you get a different result ?
> > > 
> > > ĸen
> > 
> > I get a different result:
> > $ kpsewhich -var-value=TEXMFROOT
> > /opt/texlive
> > 
> > Indeed, the year "2015" is missing.
> > But why? I don't know.
> 
> Have you had a previous install in /opt/texlive ?
> 
> ken at jtm1 ~ $which kpsewhich
> /opt/texlive/2015/bin/x86_64-linux/kpsewhich
> 
> Are you running as a normal user, or are you using sudo, when you
> run that kpsewhich command ?  I suspect perhaps where you set $PATH
> there might be something odd.  At the moment my PATH is:
> 
> ken at jtm1 ~ $echo $PATH
> /bin:/usr/bin:/usr/local/bin:/opt/kf5/bin:/opt/qt5/bin:/opt/texlive/2015/bin/x86_64-linux
> ken at jtm1 ~ $cat /etc/ld.so.conf
> 
> ĸen

No I don't have a previous install in /opt/texlive.
It is a clean install.
I removed all previous versions before installing this one.

$ which kpsewhich
/opt/texlive/2015/bin/kpsewhich

I am running kpsewhich as a normal user (without sudo).

I have a lot of things in my PATH environment variable:
$ echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/local/games:/home/yugiohjcj/.cabal/bin:/home/yugiohjcj/fpc-2.4.2/bin:/home/yugiohjcj/documents/downloads/software/eclipse-standard-luna-R-linux-gtk:/home/yugiohjcj/documents/downloads/software/eclipse-modeling-luna-R-linux-gtk:/home/yugiohjcj/documents/downloads/software/eclipse-modeling-juno-SR1-linux-gtk:/home/yugiohjcj/documents/downloads/software/kermeta-1.4.1-galileo-linux_x86:/home/yugiohjcj/documents/downloads/software/apache-ant-1.9.4/bin:/home/yugiohjcj/apps/maven/apache-maven-3.0-SNAPSHOT/bin:/home/yugiohjcj/documents/downloads/software/jdk1.8.0_05/bin:/home/yugiohjcj/documents/downloads/software/WTK2.5.2/bin:/home/yugiohjcj/bin:/home/yugiohjcj/mvn/bin:/opt/texlive/2015/bin/

But I can do this:
$ PATH=/bin:/usr/bin:/usr/local/bin:/opt/kf5/bin:/opt/qt5/bin:/opt/texlive/2015/bin
$ echo $PATH
/bin:/usr/bin:/usr/local/bin:/opt/kf5/bin:/opt/qt5/bin:/opt/texlive/2015/bin
$ which kpsewhich
/opt/texlive/2015/bin/kpsewhich
$ kpsewhich -var-value=TEXMFROOT
/opt/texlive
So, changing the PATH value does change the result.

$ cat /etc/ld.so.conf 
/lib
/usr/lib
/usr/local/lib
/usr/i486-slackware-linux/lib
/usr/lib/seamonkey
I have not edited the /etc/ld.so.conf file whereas on the LFS instructions [1], it is written to modify this file.

Is it the reason of this failure?

[1] http://www.linuxfromscratch.org/blfs/view/svn/pst/texlive.html


More information about the tlbuild mailing list