Error while loading shared libraries: libunbound.so.0

Hi!

running command: unbound-host mtv.com

i’ve got:
unbound-host: error while loading shared libraries: libunbound.so.0: cannot open shared object file: No such file or directory

do you have any ideea?

I am running an ubuntu, fresh installed, no zone configured yet.

dig mtv.com is working

gabi

Hi!

running command: unbound-host mtv.com

i've got:
unbound-host: error while loading shared libraries: libunbound.so.0: cannot
open shared object file: No such file or directory

Hi Gabriel,

just run the programm with
$ strace <your_binary>
and look at the output. (If you have no idea, mail the strace-output)

Regards
Hauke

do you have any ideea?

I am running an ubuntu, fresh installed, no zone configured yet.

dig mtv.com is working

gabi

hauke hoffmann service and electronic systems

Moristeig 60, D-23556 Lübeck

Telefon: +49 (0) 451 8896462
Fax: +49 (0) 451 8896461
Mobil: +49 (0) 170 7580491
E-Mail: office@hauke-hoffmann.net

i've got:
unbound-host: error while loading shared libraries: libunbound.so.0: cannot open shared object
file: No such file or directory

Did you install in a non-default location, so that the libunbound shared library is not in the
dynamic loader's path?

I am running an ubuntu, fresh installed, no zone configured yet.

did you install from apt-get? Or did you compile it yourself? If from a package, then
pehraps the unbound-host does not depend on a unbound-libs package? (I am not sure how
debian/ubuntu packaged things, I just know about the fedora packaging method)

It's very likely an install problem, so you should tell us in more detail what you did.

Paul

Hi Gabriel,

Can you do ldd /usr/bin/unbound-host

Is libunbound.so.0 installed? (that would be a packager error)
perhaps ld.so has not updated its caches yet. A reboot fixes that I
think; or run ldconfig as root.

Otherwise it may have been installed in a directory which is not
searched by default by ld.so ; see man ld.so (but that would also be a
package error, I do not expect that for ubuntu).

Best regards,
   Wouter

Gabriel Petrescu wrote:

Gabriel Petrescu wrote:

Hi!

running command: unbound-host mtv.com <http://mtv.com>

i've got:
unbound-host: error while loading shared libraries: libunbound.so.0:
cannot open shared object file: No such file or directory

do you have any ideea?

I am running an ubuntu, fresh installed, no zone configured yet.

dig mtv.com <http://mtv.com> is working

i'm guessing that you installed from source? (the unbound-host package in ubuntu
should have a dependency on the libunbound0 package)

By default, the unbound library is installed in /usr/local/lib if you do 'make
install'. However, I think that Ubuntu does not have this in its default paths
to look for libraries.

You can test this by entering
LD_LIBRARY_PATH=/usr/local/lib unbound-host
on the command line.

If so, you could either add /usr/local/lib to your standard LD_LIBRARY_PATH
configuration, or tell the build scripts to install it in /usr, by doing
./configure --prefix=/usr
make
sudo make install

In this case the library should be installed in the same location where the
libunbound0 package would put it.

Hope this helps,

Jelte

I am running an ubuntu, fresh installed, no zone configured yet.

Which ubuntu version?

did you install from apt-get? Or did you compile it yourself? If from a
package, then
pehraps the unbound-host does not depend on a unbound-libs package? (I am
not sure how
debian/ubuntu packaged things, I just know about the fedora packaging
method)

It does:

Package: unbound-host
Priority: optional
Section: universe/net
Installed-Size: 72
Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
Original-Maintainer: Robert S. Edmonds <edmonds@debian.org>
Architecture: i386
Source: unbound
Version: 1.2.1-0ubuntu1
Depends: libc6 (>= 2.4), libldns1, libssl0.9.8 (>= 0.9.8f-5),
libunbound0 (>= 1.0.0)
Filename: pool/universe/u/unbound/unbound-host_1.2.1-0ubuntu1_i386.deb
Size: 13440
MD5sum: 80321a170a65c8f562c1f341b8636190
SHA1: 7dea611bedbdd28edcf3250c312a13c73605cd43
SHA256: 68b17d385255f79a1a49b5f6bf46ee4b1b5f52019d198cd3647b2fe44505ce2b
Description: reimplementation of the 'host' command
This package provides the 'unbound-host' program that is bundled with the
Unbound domain name server. This version differs from the one provided in the
package called host, which is from NIKHEF, and bind9-host, which is from ISC,
and has a similar but different set of features/options.
Homepage: http://www.unbound.net/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

It's very likely an install problem, so you should tell us in more detail
what you did.

Yup. And if you are not using packaged unbound, what is your reason
behind your decision?

Ondrej

Hauke, sorry, but this doesn't make a sense at all. In case of dynamic
library missing, the program stops before doing anything at all (apart
from searching for a dynamic libraries).

And here libunbound.so.0 is missing, which you don't have to use strace at all.

Usefull tool in this case would be:

ldd <binary>

which prints dynamic libraries mappings.

But as many before said - it's likely problem of installation of
library to place where linux dynamic linker is not aware of it (ie.
/usr/local/lib).

Ondrej

On this note...

I'm a new unbound user and very happy with it so far. It's currently
serving recursive DNS to about 10,000 customers.

However, originally I installed the Debian Lenny .deb of unbound,
basically to try and keep maintaining unbound a lot easier.

Which was fine, everything worked very well. But the .deb was rather
old, I think it was 1.0.x from memory. This meant it lacked the
unbound-control tools as I believe they were introduced in 1.1.x . So,
due to this have since changed to running a source compiled unbound
(latest version). Everything works very well.

So, not a complaint or anything. Just a bit of feedback on why I'm
running a compiled from source unbound.

I especially liked the fine tuning unbound tutorial on the unbound
website. Was very useful.

Cheers
Dave