There is a tweak in the package search mechanism of Tcl 8.3 (you have 8.2.*)
that lets it find the nested ncgi module inside the tcllib bundle of packages.

Your code will need to:

package require tcllib
package require ncgi

>>>"Tim Morley" said:
 > I have tcl 8.2.3 with tclhttpd 3.0.3 and tcllib 0.6 on my Windows 98
 > machine, and the same packages & versions on a UNIX machine too.
 > 
 > I am having problems with using cgi; even the demonstration in the sample
 > page included with tcl-httpd doesn't work. I get:
 > 
 > CGI Error
 > 
 > can't find package ncgi
 >     while executing
 > "package require ncgi"
 > 
 > If I load up tclsh or wish and type "package require ncgi" I get the same
 > error, but if I first do "package require tcllib" (which returns the version
 > number 0.5, although the download I got claims to be 0.6) and afterwards do
 > "package require ncgi" again, it then finds it and returns "1.0".
 > 
 > I have tried putting "package require tcllib" into the code immediately
 > before "packager require ncgi" but it does not solve the problem.
 > 
 > Any suggestions, please? Thanks in advance for your help.
 > 
 > 
 > Tim Morley
 > 

--      Brent Welch     <[EMAIL PROTECTED]>
        http://www.ajubasolutions.com
        Scriptics changes to Ajuba Solutions
        scriptics.com => ajubasolutions.com


Reply via email to