Architecture-independent file not found
Closed / Fixed509939ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 22 years ago
Descriptionplain2002-01-29 00:21:11
I used cygwin tools to install Tcl8.3.4 on Windows where the architecture-independent files are in a different location than the architecture-dependent files. To get tclsh834.exe to load successfully, I must set the TCL_LIBRARY environment variable. It looks like the exec-prefix value is not being passed into compiled code for later use. Below are my steps to reproduce the problem: export UTILDIR=Z:/share export ARCHDIR=Z:/locales/Win32/x86/VC6.0 ./configure --prefix=$UTILDIR --exec-prefix=$ARCHDIR -- enable-shared Upon executing tcl834.exe, I get the following error. It appears that the independent directory is just not being searched during execution. application-specific initialization failed: Can't find a usable init.tcl in the following directories: Z:/locales/Win32/x86/VC6.0/lib/tcl8.3 Z:/locales/Win32/x86/VC6.0/lib/tcl8.3 Z:/locales/Win32/x86/lib/tcl8.3 Z:/locales/Win32/x86/VC6.0/library Z:/locales/Win32/x86/library Z:/locales/Win32/x86/../tcl8.3/library Z:/locales/Win32/../tcl8.3/library This probably means that Tcl wasn't installed properly.
dgpplain2002-02-23 09:48:21
Logged In: YES user_id=80530 This is not too surprising. The Windows version of Tcl has assumed that TCL_PREFIX and TCL_EXEC_PREFIX are the same directory. For several releases, that directory was known as the "Root" and was stored and retrieved from the Windows registry. Workaround for now is to not install in separate directories or use TCL_LIBRARY, as you know. Possible solutions include copying the approach used on Unix systems of "compiling in" the name of the TCL_LIBRARY directory, or perhaps making use of the new features under consideration in TIP 59. I want to wait and see where TIP 59 goes before acting on this.
davygrvyplain2002-06-18 09:02:22
Logged In: YES user_id=7549 With Win64 around the door, and even looking backwards at DOS, arch-splitting would seem like a good thing. %Root%//win32-ix86/bin/tcl84.dll %Root%/win64-ia64/bin/tcl84.dll %Root%/dos-ix86/bin/tcl84.(dle|ovl)
dgpplain2003-07-11 04:01:28
Logged In: YES user_id=80530 With TIP 59 implemented in Tcl 8.5, we should augment the script in generic/tclInitScript.h to also look for init.tcl in the value of the "scriptdir,runtime" key of [tcl::pkgconfig]. Or as an alternative, have TclpInitLibraryPath() make sure that value is on the search path.
dgpplain2004-06-17 03:48:31
Logged In: YES user_id=80530 This is fixed in the HEAD.
Log in (anonymous is fine) to add a comment.