[tex-live] Bug: texindy fails in WinXP setup.
Dan Luecking
luecking at uark.edu
Thu Mar 11 20:28:12 CET 2010
Hi:
In my installation (TL2009 under WinXP) texindy fails. All
incantations, even something as simple as
texindy -h
result in
texindy.pl: cannot locate xindy
There is no problem in running xindy directly.
It was easy to track down where this error message comes from,
namely the definition of $xindy at lines 365--378 of texinfy.pl.
I came up with a 3-line change that seems to correct it. See the
diff below.
Note that the original code searches for xindy.exe only under
$ENV(TL_ROOT), and this variable is not defined. Defining it
(in the environment or in texmf.cnf) permits texindy to run
normally. The search for xindy.bat is perfectly good, but
xindy.bat no longer exists. I merely copied the same search
command, substituting xindy.exe for xindy.bat.
Regards,
Dan
The promised diff:
--- texindy.pl.ori Thu Mar 11 12:26:44 2010
+++ texindy.pl Thu Mar 11 13:17:59 2010
@@ -370,12 +370,15 @@
} elsif ( exists $ENV{"TL_ROOT"} && -f
"$ENV{TL_ROOT}\\bin\\win32\\xindy.exe") {
$xindy = "$ENV{TL_ROOT}\\bin\\win32\\xindy.exe";
$cmd_dir = "$ENV{TL_ROOT}\\bin\\win32";
} elsif ( -f "$ENV{SELFAUTOLOC}/xindy.bat" ) { # woe32
$xindy = "$ENV{SELFAUTOLOC}/xindy.bat";
$cmd_dir = $ENV{"SELFAUTOLOC"};
+} elsif ( -f "$ENV{SELFAUTOLOC}/xindy.exe" ) {
+ $xindy = "$ENV{SELFAUTOLOC}/xindy.exe";
+ $cmd_dir = $ENV{"SELFAUTOLOC"};
} else {
die "$cmd: cannot locate xindy\n";
}
parse_options();
output_version() if $output_version; # will not return
Daniel H. Luecking
Department of Mathematical Sciences
Fayetteville, Arkansas
http://www-cs-faculty.stanford.edu/~knuth/iaq.html
More information about the tex-live
mailing list