our Tcl installation (tclsh) fails to find Tk package.
One of possible reasons is missing file ‘pkgIndex.tcl’ in …/tk8.4/
directory; Please check if you can feed ‘package require Tk’ to tclsh
The Installation probably fails because of the missing Tk packages. Those where formerly included with ActivePerl because PPM was build on Tcl/Tk.
the application concerning here actually is designed and developed on Tkx and since 2013 with Activeperl. And my first target was to migrate from 5.24 (old fassion) to 5.34 (platform) without essential changes, because it’s “just a new version” like many others before over the years.
But all those additional TCL packages used arround the applications, like Tkx::package_require(“tooltip”) or Tkx::package_require(‘img::ico’) , did not load because the relevant TCL-Libraries where missing.
So I was looking around, where to get hands on those missing libraries, and stumbled into Tcl::Tk which threw error messages similar to those from package_require.
Since the applications just have to run on Windows, it would be easy to add those missing TCL-Libraries with Tkx::lappend(’::auto_path’, …).
5.34 is still new enough that GUI toolkits haven’t been sorted out yet.
Stick to Tkx if that’s what the application is written for. At the moment, that probably means using 5.28. If and when all the build dependencies are sorted out, the virtual environment model of 5.32/34 might mean that you also need to set PERL5LIB so that it can find the Tcl library.
Your other main option is “Perl-Tk”, which is also working for 5.28 but not for 5.34. Perl-Tk moves slowly because it’s a very complex module, but it is still getting updates.
The “Tcl-Tk” Perl module is a no-mans land. It was never widely used, and once Perl-Tk got back on it’s feet, there hasn’t been much reason for using it.