Zeh Mau wrote: Well, there's your problem, right there. :)
> I use cygwin...
> [Zeh@Mau] ~/MyTclsh > mytclsh What Tcl library did you link your program against? Where did
> application-specific initialization failed: Can't find a usable
> init.tcl in the following directories:
> This probably means that Tcl wasn't installed properly.
it come from?
Assuming it's not some mangled fork (as I fear it may be), then
it appears to be built from Tcl 8.4.1 sources which are very old
now, and lack all the bug fixes that have gone into the 14
patch releases since then.
Looking back at the unforked Tcl 8.4.1 sources...
well, the unforked Tcl sources would not be looking in those places.
Your Tcl is looking in paths named ".../share/..." and standard
Tcl 8.4.1 looked in ".../lib/...". So your dealing with a creative
fork of Tcl in both its sources and its install pattern. Thanks, Cygwin!
There's some guesswork involved, but it appears that your program
is loading up a Tcl DLL from your home directory area? Perhaps
? Assuming it's an installed Tcl DLL, it
goes looking for the init.tcl that would be installed parallel
to it in a normal install. That's why it's including
on the list of directories to search. Since it's not finding
anything there, that's the cause of the "not installed
correctly" error message.
Can you comment on how that Tcl DLL got where it is? Did you just
copy it there? Or was it really placed there by some broken
installer? I'm suspecting it was copied, because that would
also explain why TclGetDefaultEncodingDir() is also returning
an incorrect directory (the first on your path).
Rather than try to fix the broken install, I'll
recommend you work around it using the TCL_LIBRARY
environment variable. Set that environment variable to the
name of the directory that contains the compatible init.tcl file.
In this case, you'll want the one that matches the Tcl 8.4.1
Or, start over with an up to date ActiveTcl distribution of Tcl from