Can't find a usable init.tcl ... Tcl wasn't installed correctly
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Can't find a usable init.tcl ... Tcl wasn't installed correctly

From: Patrick <PatrickSurname@xxyyyzzzz.com>
Date: Mon Mar 06 2006 - 18:22:33 CET

I built a toy tcl/tk program with an embedded interpreter. It works as
expected under Linux.

When I run the program from the Windows XP command prompt,
initialization of the embedded interpreter fails, returning a message like:

-----------------------------------------------------------
Can't find a usable init.tcl in the following directories:

This probably means that Tcl wasn't installed correctly.
-----------------------------------------------------------

I tried again after executing

        SET TCL_LIBRARY=C:\Tcl\Lib\tcl8.4

from the command prompt, and the Tcl_Init call succeeded.

Have I actually installed Tcl incorrectly? I just accepted all the
default settings rather dumbly during installation.

Will I have to set TCL_LIBRARY like this each time I want to run such a
program?
Received on Sun Apr 30 02:25:00 2006