TransWikia.com

Can't locate TeXLive/TLConfig.pm in @INC

TeX - LaTeX Asked by ysalmon on July 12, 2021

When invoking tlgmr, especially in the course of a distribution upgrade, it fails very early with a PERL error Can't locate TeXLive/TLConfig.pm in @INC followed by a list for @INC in the following form : @INC contains: /2020/texmf-dist/scripts/texlive /2020/tlpkg etc.

Setting the PERL5LIB to the appropriate folder allows to get a little further but things still fail with

kpathsea: configuration file texmf.cnf not found in these directories: /2020/bin/x86_64-linux etc.

2 Answers

This happens when one invokes tlmgr by specifying a relative path to it that does not begin with ./, eg. user@machine:/opt/texlive$ 2020/bin/x86_64-linux/tlmgr update --self --all.

For some (PERL-related ?) reason, this makes tlmgr search for things under /2020/.

Use user@machine:/opt/texlive$ ./2020/bin/x86_64-linux/tlmgr update --self --all instead.

Correct answer by ysalmon on July 12, 2021

According to the Arch Wiki of TeX Live, tlmgr script in TEXMFDIST is broken. The method to fix is to edit TEXMFDIST/scripts/texlive/tlmgr.pl and replace $Master = "$Master/../.."; with $Master = "${Master}/../../..";. Or for Arch-based Linux distro user, use tllocalmgr instead.

Answered by Guang-Le Du on July 12, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP