------- Original Message ------- On Friday, December 2nd, 2022 at 2:17 PM, Rich Shepard <[email protected]> wrote:
> On Fri, 2 Dec 2022, Ben Koenig wrote: > > > Did you upgrade to a newer version of text than what the distro comes > > with? I don't have a texindy.pl in /usr/share/texmf-dist/scripts > > > Ben, > > No. The version in 14.2 and 15.0 are the same: texlive-2021.210418. And > Herbert Voss sent me a 2011 version of the *.pl files which are currently > installed. And without making the /usr/bin/ version a soft link both > versions produce an error that texindy is not a link so it prints the error > message on line 414 of the file. > > TexLive on 14.2 was installed back in 2021 and has no issues other than with > texindy. And I didn't notice that until earlier this week when I pdflatex > didn't produce the index with the PDF despite having the index inserted at > the end of the book. > > Thanks, > > Rich Well that's just strange. I took a look at the script and yes, it clearly does want to run as a symlink. I don't exactly what it is trying to do, but I can recommend 2 things to try. First is to make sure you have all the correct paths. You are linking to /usr/share/texmf-dist/scripts/texindy.pl but a stock install of the same package puts them in /usr/share/texmf-dist/scripts/xindy/texindy.pl. It could be that something got moved around? Second, try calling the symlink using the absolute path: /usr/bin/texindy. I don't think this will make a difference, but it is clearly trying to build a path based on $0 (the "real" name of the script) and I've seen other programs where logic added to define paths can actually fail based on how the program is called.
