[tlbuild] Can't locate mktexlsr.pl]

Reinhard Kotucha reinhard.kotucha at web.de
Sat Feb 20 03:17:25 CET 2016


On 2016-02-14 at 17:22:17 +0100, YuGiOhJCJ Mailing-List wrote:

 > I get a different result:
 > $ kpsewhich -var-value=TEXMFROOT
 > /opt/texlive
 > 
 > Indeed, the year "2015" is missing.
 > But why? I don't know.

I must admit that I was the one who suggested TEXMFROOT.  So let me
explain.

TeX Live is a multi-platform system where executables are in the
directory /path/to/bin/<platform> but Linux distributions only support
one platform, hence the <platform> directory is omitted.

The texmf tree is searched relative to the location of the binaries.
There are two kpathsea variables in texmf.cnf, SELFAUTODIR and
SELFAUTOPARENT, which control the behavior.

The directory containing the binaries has to be in PATH.  The
variables SELFAUTODIR and SELFAUTOPARENT denote the root of the
installation,

  SELFAUTODIR    = <directory containing the binaries>/..
  SELFAUTOPARENT = <directory containing the binaries>/../..

In other words, SELFAUTOPARENT denotes the root of a multi-platform
TeX Live installation and SELFAUTODIR has to be used if only one
platform is supported (and the <platform> directory is omitted).

Former versions of texmf.cnf used these variables at many places.

The idea of TEXMROOT is to have only one variable which determines
whether TeX Live supports more than one platform or not.

You obviously installed TeX Live for a single platform but didn't
adjust the value of TEXMROOT accordingly.

The default setting in texmf.cnf is

  TEXMFROOT = $SELFAUTOPARENT

Without the <platform> directory it points to

  /opt/texlive/2015/bin/../..

which is equivalent to

  /opt/texlive

If only one platform is supported, it's necessary to replace this line
with

  TEXMFROOT = $SELFAUTODIR

Then TEXMFROOT will point to

  /opt/texlive/2015/bin/..

which is equivalent to

  /opt/texlive/2015


And please don't modify

  /opt/texlive/2015/texmf-dist/web2c/texmf.cnf 

because your changes will be be overwritten by the next update.

Just add the line to

  /opt/texlive/2015/texmf.cnf

instead.

Regards,
  Reinhard

-- 
------------------------------------------------------------------
Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at web.de
------------------------------------------------------------------


More information about the tlbuild mailing list