Updated 2012-01-22 15:11:42 by dkf

Here are the steps Nicolas Boretos documented on the Metakit mailing list to build a tclhttpd starkit on a Windows platform machine.

  1. Download tclkit.exe http://www.equi4.com/tclkit/
  2. Download sdx.exe http://www.equi4.com/pub/tk/examples/
  3. Download tclhttpd3.3 source zip http://sourceforge.net/projects/tclhttpd
  4. Extract tclhttpd3.3 to c:\
  5. Rename directory containing the tclhttpd code to tclhttpd3.3.vfs
  6. Create c:\tclhttpd.vfs\bin\main.tcl and put into the file the lines
 set env(TCL_HTTPD_LIBRARY) [file join $scripdoc::self lib]
 source [file join $scripdoc::self bin httpd.tcl]

  1. Create a batch file, sdxcreate.bat containing
        @tclkit sdx %1 %2 %3 %4 %5 %6 %7 %8 %9

  1. Copy sdx.bin into c:\ and rename to sdx
  2. Create a file called tclhttpd.bat in c:\ with the following
        @tclkit tclhttpd %1 %2 %3 %4 %5 %6 %7 %8 %9

  1. in c:\ type in
        sdxcreate fs2sd tclhttpd

  1. Run tclhttpd.bat

Note, tclkit.exe should be in c:\, or at least where the system can find it or edit the batch file and use the full path.

Note, the current tclhttpd3.3.1, looks for tcllib at the same directory level as tclhttpd, so either adjust as necessary, or use tcllib0.8

See also http://equi4.com/pub/tk/examples/tclhttpd.README and Tclhttpd Winservice.