Blog‎ > ‎

Error while loading shared libraries with Aolserver

posted Dec 23, 2008, 9:55 PM by Jade Rubick
If you get an error like this:

/usr/local/aolserver/bin/nsd: error while loading shared libraries: libnsd.so: cannot open shared object file: No such file or directory

Try ldd:

/usr/local/aolserver/bin# ldd nsd
        libnsd.so => not found
        libnsthread.so => not found
        libtcl8.4.so.0 => /usr/lib/libtcl8.4.so.0 (0x40018000)
        libdl.so.2 => /lib/libdl.so.2 (0x400ba000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x400bd000)
        libm.so.6 => /lib/libm.so.6 (0x400d1000)
        libc.so.6 => /lib/libc.so.6 (0x400f2000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

It looks like the libraries are not being found.

Try this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/aolserver/lib

Vinod's entry fixes it here:

http://openacs.org/forums/message-view?message_id=161815

You may need to edit your /usr/local/aolserver/nsd-postgres file to include Aolserver's lib directories.
Comments