a general remark on package require failing (e.g. tdom. XOTcl): take care that you are compiling with the same tcl version and you install into a place, where AOLserver can pick it up. Here is what i use in my build script:
NS=/usr/local/aolserver-4.5
TCL=/usr/local/src/tcl8.4.13/unixcd tDOM-0.8.0/unix
../configure --enable-threads --enable-symbols \
--prefix=$NS --exec-prefix=$NS --with-tcl=$TCL
make
make install
cd ../..
cd xotcl-1.4.0
./configure --enable-threads --enable-symbols \
--prefix=$NS --exec-prefix=$NS --with-tcl=$TCL
make
make install-aol
cd ..