Jorge,
but of course will you get an error when you run a test intended for a standard Tcl installation while you compiled the library for AOLserver.
Here's how I compiled and installed tDOM:
please see the README.AOL included with tDOM. You'll find tDOM at http://tdom.org/
If you are compiling tDOM for AOLServer 3.5.6, then remove
--with-tcl=$aolsrc/tcl8.3.4/unix
from the 3.X configure options as listed in CONFIG.
After compiling libtdom0.7.7.so, copy this library to your aolserver/bin directory.
I prefer to rename the file to nstdom.so but that is just estatics. Then include the library in
ns_section ns/server/<server>/modules
nstdom nstdom.so (or libtdom0.7.7.so if you haven't renamed
the library)
That is all.
/Bart