Apache Rivet (Tcl) installation notes

Versions

  • httpd v2.2.15
  • tcl 8.6.2
  • rivet 2.2.0

Installation

  • Install httpd and httpd-devel
  • Install tcl using ./configure --prefix=/usr/local/tcl
  • Install rivet using ./configure --prefix=/usr/local/rivet --with-tcl=/usr/local/tcl/lib
  • "echo /usr/local/tcl/lib" > /etc/ld.so.conf.d/tcl.conf; ldconfig

Configure httpd

# cat << EOF > /etc/httpd/conf.d/rivet.conf
LoadModule rivet_module modules/mod_rivet.so
AddType application/x-httpd-rivet .rvt
AddType application/x-rivet-tcl .tcl
DirectoryIndex index.tcl index.rvt
EOF
# service httpd restart

Test with index.rvt

<html>
<head>
<title>Test Page</title>
</head>
<body>
<h1>Test Page</h1>
<? puts "<p>Hello</p>" ?>
<? puts "<p>This page was generated at [clock format [clock seconds]]</p>" ?>
</body>
</html>