[jdev] Re: Re: [jadmin] Problem building jabber-1.4.1
Matthias Wimmer
m at tthias.eu
Wed Mar 14 04:09:29 CDT 2007
Hi Lars!
Lars Sommer schrieb:
> now i cant even run the server normally, either in my
> usr/local/jabber/jabberd-1.4.4/jabberd/ or in /jabber/bin/
> it says ./jabberd: error while loading shared libraries: libpth.so.20:
> cannot open shared object file: No such file or directory
>
You might not feel like that, but you went a step further. It's now left
to solve the problem that your libpth installation does not seem to be
in a path where your system's dynamic loder is expecting it.
As Norman said, you have to find out where libpth is installed and to
configure your system'S dynamic loader to find it there.
This might be done system wide by adding the correct path to the
directory where you find libpth.so to /etc/ld.so.conf and afterwards
running ldconfig. Or you might also add additional paths where the
dynamic loader searches for libraries by defining the environment
variable LD_LIBRARY_PATH.
> If i run it inside gdb:
> (gdb) run jabberd
> Starting program: /jabber/bin/jabberd jabberd
> /jabber/bin/jabberd: error while loading shared libraries: libpth.so.20:
> cannot open shared object file: No such file or directory
>
> Program exited with code 0177.
> (gdb)
>
> Am i doin anything wrong here? Or doesent it seem like pth isnt
> configured as it should?
>
As I said: you have now solved one of your problems. gdb now was
successfully able to load the jabberd binary. It's just that your system
was not able to load all required library files (DLLs in the terms of
Windows).
> As said, im aint that familiar with these linux tools, so bare over with
> me :) But i really appreciate your help!!
>
The relevant utilities here might be "ldconfig" (which recreates the
locations the dynamic linker searches for libraries from the
/etc/ld.so.conf file) and "ldd <executable to check>" which can be used
to check if the system finds all requires libraries and where they are
loaded from.
Matthias
More information about the JDev
mailing list