I want to use
TclCurl
from AOLserver 3.3+ad13 and OpenACS 4.6.3.
Naturally, this runs into the age-old AOLserver 3.x
package require problems.
That old thread has useful advice, but it seems incomplete. I tried
this:
global tcl_version tcl_pkgPath tcl_library tcl_platform auto_path
set tcl_pkgPath {/usr/lib}
set tcl_library [file join $tcl_pkgPath "tcl${tcl_version}"]
set tcl_platform(platform) {unix}
set auto_path [list /usr/lib/tcl /usr/lib]
source [file join $tcl_library init.tcl]
source [file join $tcl_library package.tcl]
package require TclCurl
And got the expected error:
variable "errorInfo" already exists
while executing
"global errorInfo errorCode"
(procedure "template::adp_parse" line 36)
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 7)
invoked from within
(Note it makes no difference
which Tcl package I require,
'package require http' or 'package require oratcl' all fail in exactly
the same way.)
I still don't understand this part, but I commented out the offending
lines in /usr/lib/tcl8.3/init.tcl
as Dave B. suggested:
# TODO: --atp@piskorski.com, 2003/10/07 09:00 EDT
#set errorCode ""
#set errorInfo ""
But the 'package require' then still gives
this error:
invalid command name "tclPkgUnknown"
while executing
"tclPkgUnknown TclCurl {}"
("package unknown" script)
invoked from within
"package require TclCurl"
invoked from within
What gives? Does anyone understand this?