Installing tkpath from chiselapp.com into a Slackware Linux system with
the usual ./configure --with-tcl... make, make install seemed to work. However executing
package require tkpath
in tkcon (version 2.7) gives proc not found errors. The package require worked fine in tclsh or wish.
The original pkgIndex.tcl is:
#pkgIndex.tcl. Generated from pkgIndex.tcl.in by configure.
#
namespace eval ::tkpath {
proc load_package {dir} {
load [file join $dir libtkpath0.3.3.so]
# Allow optional redirect of library components.
# Only necessary for testing, but could be used elsewhere.
if {[info exists ::env(TKPATH_LIBRARY)]} {
set dir $::env(TKPATH_LIBRARY)
}
source $dir/tkpath.tcl
};# load_package
}
package ifneeded tkpath 0.3.3 [list ::tkpath::load_package $dir]
#*EOF*
When the load_package proc was implemented as an annonymous procedure in the package ifneeded command tkcon, tclsh and wish can all load the package.
package ifneeded tkpath 0.3.3 [list apply {{dir} {
load [file join $dir libtkpath0.3.3.so]
# Allow optional redirect of library components.
# Only necessary for testing, but could be used elsewhere.
if {[info exists ::env(TKPATH_LIBRARY)]} {
set dir $::env(TKPATH_LIBRARY)
}
source $dir/tkpath.tcl
}} $dir]
Is this a known problem in tkcon, something unique to the tkpath package, or just something wrong in my system configuration?
Dave B
#Is it perhaps not included in the auto_path of tkcon?
#Compare the output in tclsh and tkcon.
..
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 915 |
Nodes: | 10 (2 / 8) |
Uptime: | 46:50:10 |
Calls: | 12,170 |
Files: | 186,522 |
Messages: | 2,234,614 |