[Starkit] Problem with tclkit 8.5a2 under Linux + work-around

Colin McCormack colin at chinix.com
Wed May 11 20:38:57 CEST 2005


Hi,

The following kind of error occurs under tclkit 8.5a2 under Linux,
whenever runnning a kit:

$ sdx unwrap /usr/local/bin/sdx
can't find package app-sdx
    while executing
"package require app-sdx"
    (file "/usr/local/bin/sdx/main.tcl" line 3)
    invoked from within
"source /usr/local/bin/sdx/main.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel [list source [file join $self main.tcl]]"

Steve Landers has found that the problem is related to an auto_path
which does not include the lib/ dir within the kit, and has found a
work-around as follows:

sdx.vfs/main.tcl:

	package require starkit
	if {[starkit::startup] eq "sourced"} return
	#puts stderr "auto_path = $auto_path"
	append auto_path $starkit::topdir/lib  ;# <---- workaround
	package require app-sdx

This work-around needs to be placed in any kit you wish to run under
Linux 8.5a2

Colin.




More information about the Starkit mailing list