Skip to content
Tcl Source Code View Ticket
Login

View Ticket

makefile.vc & TCL_LIBRARY

Closed / Fixed1023150fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-09-06 16:09:35
Tcl: v8.5a2 HEAD at 06-09-04
OS: WinXPsp2
Built with makefile.vc using VC7

The following errors are encountered when installing 
on to a system that doesn't have an existing 
installation...

"Installing message catalogs"
        set TCL_LIBRARY="../library"
        .\Release\tclsh85.exe "../tools/installData.tc
l"  "../library/msgs" "C:\Program 
Files\Tcl\lib\tcl8.5/msgs"
application-specific initialization failed: Can't 
find a usable init.tcl in the
following directories:
    D:/src_tcl/win/\"../library\" 
D:/src_tcl/win/lib/tcl8.5 {C:\Program 
Files\Tcl\lib\tcl8.5}

This probably means that Tcl wasn't installed 
properly.


    Creating msgs
"Installing time zone data"
        set TCL_LIBRARY="../library"
        .\Release\tclsh85.exe "../tools/installData.tc
l"  "../library/tzdata" "C:\Program 
Files\Tcl\lib\tcl8.5/tzdata"
application-specific initialization failed: Can't 
find a usable init.tcl in the
following directories:
    D:/src_tcl/win/\"../library\" 
D:/src_tcl/win/lib/tcl8.5 {C:\Program 
Files\Tcl\lib\tcl8.5}

This probably means that Tcl wasn't installed 
properly.


Although there are reported errors, Tcl *does* still 
install properly. The errors are due to the quotes 
around "../library" and is fixed by the following 
patch...

--- makefile.vc.old     Tue Sep 07 01:28:06 2004
+++ makefile.vc Tue Sep 07 01:29:22 2004
@@ -918,13 +918,13 @@

 install-tzdata:
        @echo "Installing time zone data"
-       set TCL_LIBRARY="$(ROOT)/library"
+       set TCL_LIBRARY=$(ROOT)/library
        $(TCLSH) "$(ROOT)/tools/installData.tcl" \
            "$(ROOT)/library/tzdata" "$(SCRIPT_INSTALL
_DIR)/tzdata"

 install-msgs:
        @echo "Installing message catalogs"
-       set TCL_LIBRARY="$(ROOT)/library"
+       set TCL_LIBRARY=$(ROOT)/library
        $(TCLSH) "$(ROOT)/tools/installData.tcl" \
            "$(ROOT)/library/msgs" "$(SCRIPT_INSTALL_D
IR)/msgs"
davygrvy Ticket [1023150fff]: 1 change [History diff]2004-09-08 03:59:51
davygrvyplain2004-09-08 07:02:48
Logged In: YES 
user_id=7549

This problem doesn't occur with Win2K and VC6, so I'll assume 
this is either a difference with the command shell, or nmake 
itself.  The patch doesn't break it, so we'll go with it.
wildcard_25plain2004-09-08 10:25:49
Logged In: YES 
user_id=596509

I think it was caused by Tcl parsing "../library" as a 
single word due to the quotes.

D:/src_tcl/win/\"../library\" 

Of course if there was a version of Tcl already installed, 
this message would not be shown as init.tcl is found on 
the third search path.

{C:\Program Files\Tcl\lib\tcl8.5}

Did you test without another build somewhere in the search 
path?
Of course this is irrelevent now :)
dgpplain2004-10-27 00:28:27
Logged In: YES 
user_id=80530

any backport needs here?
davygrvyplain2004-10-27 00:40:57
Logged In: YES 
user_id=7549

That's for the new clock stuff.  No backport needed.
Log in (anonymous is fine) to add a comment.