Forum OpenACS Q&A: Re: tDOM installation question

Collapse
Posted by jorge freitas on
Jade,
Yes, i restart the server. I try to install the tDOM doing
../configure
make
make test

But i get the folowing error when doing
 make test: 
...
TCL_LIBRARY=`echo /usr/src/build/138946-i386/BUILD/tcltk-8.3.3/tcl8.3.3/library` LD_LIBRARY_PATH=".:/usr/lib::/usr/local/pgsql/lib" LIBPATH=".:/usr/lib:" SHLIB_PATH=".:/usr/lib:" PATH=".:/usr/lib:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/voodoo/bin:/usr/local/pgsql/bin" TCLLIBPATH="." /usr/lib/../bin/tclsh `echo ../tests/all.tcl` -constraints longRunning
couldn't load file "./libtdom0.7.7.so": ./libtdom0.7.7.so: undefined symbol: Ns_Log
    while executing
"load ./libtdom0.7.7.so"
    ("package ifneeded" script)
    invoked from within
"package require tdom 0.7.5"
    invoked from within
"if {[catch {package present tdom}]} {
    package require tdom 0.7.5
} else {
    if {[lsearch [namespace children] ::tDOM] == -1} {
        # tcldoms..."
    (file "../tests/loadtdom.tcl" line 20)
    invoked from within
"source [file join [file dir [info script]] loadtdom.tcl]"
    (file "../tests/all.tcl" line 12)
make: *** [test] Error 1

Can you help me.
Thanks.
Collapse
Posted by Bart Teeuwisse on
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