If you use the unbundled TclHttpd, then I would just ensure that
the Tcl Standard Library is available to your tclsh, and then
run TclHttpd directly from its distribution (not install) directory.
What happens when you try that?
I have to apologize for all this. I really liked the old model where
there wasn't an install step at all. However, now that it is being packaged
with a much larger product it gets installed along with a whole lot of
other packages (using that complex build environment I mentioned before).
>>>petrus vloet said:
>
> Dear Users,
>
> Following experiences I made today with tclhttpd3.0.1 standalone.
> (Not distributed package).
>
> Brent cleaned the directory structure. So als should work from scratch.
>
> I do not like to install tclhttpd in the default directory /usr/local so
> I configured the stuff with:
>
> % ./configure --prefix=/usr/local/www/tclhttpd --enable-gcc
> --enable-shared
> ...
> % gmake
> ...
> % gmake install
> ...
>
> Next step was to startup the stuff
>
> % cd /usr/local/www/tclhttpd/bin
> % ./tclhttpd.tcl
> produced an error:
>
>
> Can't find a usable version.tcl in the following directories:
> /usr/local/lib/tclhttpd3.0.0 /usr/local/lib/tclhttpd3.0.0
> /usr/lib/tclhttpd3.0.0 /usr/local/library /usr/library
> /usr/tclhttpd3.0.0/library /tclhttpd3.0.0/library
>
>
>
> This probably means that tclhttpd wasn't installed properly.
>
> while executing
> "error $msg"
> (procedure "tcl_findLibrary" line 65)
> invoked from within
> "tcl_findLibrary tclhttpd 3.0.0 3.0.0 version.tcl TCL_HTTPD_LIBRARY
> Config(lib)"
> invoked from within
> "if {[file exist [file join $home ../lib/httpd.tcl]]} {
> # Cases 1 and 2
> set Config(lib) [file join $home ../lib]
> } else {
> tcl_findLibrary t..."
> (file "httpd.tcl" line 67)
>
>
> tcl_findLibrary did not find version.tcl in
> /usr/local/www/tclhttpd/lib/tclhttpd3.0.0
>
> Workaround is to define in the shell the environment variable
> TCL_HTTPD_LIBRARY (5. Parameter of tcl_findLibrary).
>
> So in the C-Shell:
> % setenv TCL_HTTPD_LIBRARY /usr/local/www/tclhttpd/lib/tclhttpd3.0.0
> Now call tclhttpd.tcl.
> % httpd.tcl &
> [1] 9696
> ws5512%
> ws5512% can't find package limit
> Running with default file descriptor limit
> No .htaccess support: can't find package crypt
> httpd started on port 8015
>
>
> Oops: auto_path has been extended with
> /usr/local/www/tclhttpd/lib/tclhttpd3.0.0 but auto_path doesn't include
> the directory
> /usr/local/www/httpd/lib.
>
> So I hardcoded the following line in httpd.tcl
> #line 79
> set auto_path [concat $auto_path [file join /usr/local/www/tclhttpd/lib]
> ]
>
>
> Hura, stuff startups withour errors!
>
>
>
> --
> #-------With best regards, Mit freundlichen Gruessen, Met vriendelijke
groet, ------
> # Piet Vloet
> # Siemens AG Austria
> # Boschstrasse 10 Phone : +43-51707-42906
> # A-1190 Vienna Fax : +43-51707-52606
> # mailto:[EMAIL PROTECTED] WWW:http://www.siemens.at
>
>
>
-- Brent Welch <[EMAIL PROTECTED]>
http://www.scriptics.com
Scriptics: The Tcl Platform Company