[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new xmlparser
Kasper Peeters <K.Peeters@damtp.cam.ac.uk> writes:
| > It works when I set LD_LIBRARY_PATH, but not when I don't.
|
| My previous post was a bit misleading. The oils just have to sit in
| the $(prefix)/lib/oil directory; the objectmanager will pick them up
| from there regardless of the LD_LIBRARY_PATH. The shared libraries, in
| particular libmnemonic and libdom, do have to sit in a directory that
| is visible for ld.so. If you have things in /etc/ld.so.conf, run
| ldconfig _after_ you did `make install' in the mnemonic source
| tree. The directories in /etc/ld.so.conf are not scanned every time
| you try to open a library, only when running ldconfig (I think, so
| this is probably wrong ;-) ).
I did run /sbin/ldconfig after installing the libs.
%echo $LD_LIBRARY_PATH
:/usr/local/bleeding-edge/mnemonic-raw/lib:/usr/local/bleeding-edge/mnemonic-raw/lib/oil:/usr/local/bleeding-edge/mnemonic-raw/lib/msg
%ldd test_xmlparser
xmlhandler.oil.0.1.1 => xmlhandler.oil.0.1.1 (0x40014000)
libpthread.so.0 => /lib/libpthread.so.0 (0x4003e000)
libdom.so.0.1.1 => /usr/local/bleeding-edge/mnemonic-raw/lib/libdom.so.0.1.1 (0x4004f000)
libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 (0x4005f000)
libm.so.6 => /lib/libm.so.6 (0x400a1000)
libc.so.6 => /lib/libc.so.6 (0x400bd000)
libnetwork_messages.so.0.1.1 => /usr/local/bleeding-edge/mnemonic-raw/lib/msg/libnetwork_messages.so.0.1.1 (0x401ab000)
libdom_messages.so.0.1.1 => /usr/local/bleeding-edge/mnemonic-raw/lib/msg/libdom_messages.so.0.1.1 (0x401c6000)
libmnemonic.so.0.1.1 => /usr/local/bleeding-edge/mnemonic-raw/lib/libmnemonic.so.0.1.1 (0x401da000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
liburl.so.0.1.1 => /usr/local/bleeding-edge/mnemonic-raw/lib/liburl.so.0.1.1 (0x4020a000)
libdl.so.2 => /lib/libdl.so.2 (0x40217000)
clearing the environment again:
%export LD_LIBRARY_PATH=
%echo $LD_LIBRARY_PATH
now I get.
%ldd test_xmlparser
xmlhandler.oil.0.1.1 => not found
libpthread.so.0 => /lib/libpthread.so.0 (0x4001a000)
libdom.so.0.1.1 => /usr/local/bleeding-edge/mnemonic-raw/lib/libdom.so.0.1.1 (0x4002b000)
libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 (0x4003b000)
libm.so.6 => /lib/libm.so.6 (0x4007d000)
libc.so.6 => /lib/libc.so.6 (0x40099000)
libmnemonic.so.0.1.1 => /usr/local/bleeding-edge/mnemonic-raw/lib/libmnemonic.so.0.1.1 (0x40187000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libdl.so.2 => /lib/libdl.so.2 (0x401b6000)
--
Preben Randhol "You will find me if you want me in the garden,
[randhol@pvv.org] unless it's pouring down with rain."
[http://www.pvv.org/~randhol/] -- Einstürzende Neubauten
-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Mnemonic Browser Project - http://www.mnemonic.browser.org/
Developers Mailinglist
Archive: http://www.mnemonic.browser.org/list/dev/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-