Get the .deb (Debian package): "apt-get install libapache-mod-dtcl".
For those of you who don't have Debian GNU/Linux systems:
./configure
--add-module=src/modules/mod_dtcl/mod_dtcl.c
from the top level of your Apache source distribution.
If you have problems:
Check in mod_dtcl.c, and see if it
points at the right Tcl header file, tcl.h. If you aren't
able to figure out the problem, send mail to the mailing list
(and ask to be CC'ed in the response if you are not
subscribed).
Note:mod_dtcl may haveproblems on recent Redhat and Suse systems, because these distributions compile Tcl with threads. According to Andreas Jaeger, glibc maintainer, it is impossible to dynamically load an object (an Apache module, for example) which is linked against pthreads (as Tcl is on these platforms). The solution to this is to compile the httpd binary itself against -lpthread, or to use a Tcl without threads enabled.
CONFIGURATION:
(http.conf)
LoadModule dtcl_module /usr/lib/apache/1.3/mod_dtcl.so
(or whatever dir you use.)
Note that you do not need this
if you are compiling mod_dtcl statically.
(srm.conf)
AddType application/x-httpd-tcl .ttml
AddType text/x-tcl .tcl
(If you want to
run regular .tcl files with mod_dtcl)
Dtcl_GlobalScript name-of-script.tcl
Tcl script that is loaded when each interpreter is
initialized. Consider putting dtcl.tcl here.
Dtcl_CacheSize size-of-cache
Number of ttml scripts to cache as Tcl Objects.
Dtcl_ChildInitScript name-of-script.tcl
Script to be called when each apache child is initialized.
This is the best place to load modules.
Dtcl_ChildExitScript name-of-script.tcl
Script to be called when each apache child exits.
Note that, as of Apache 1.3.4, all these configuration options will go in one file - httpd.conf.
mod_dtcl is Copyright David Welton 1998