Discussion:
[soci-users] error while loading shared libraries: libsoci_core.so.3.2: cannot open shared object file: No such file or directory
Bruno Zerbo
2013-04-05 15:45:12 UTC
Permalink
Hi guys,
I'm tring to build a simple program using soci. I read in the documentation
and I added the following library:
-ldl -lpq -lsoci_core -lsoci_postgresql

the program starts to run but then exit with the error in the object.
What's the problem?
I think that the problems could be around libdl that I can't find on my pc.
(what is this library for? Where I can download and build it?)
I compiled the last git version and I'm on kubuntu 13.04
Thanks,
Bruno
Mateusz Loskot
2013-04-05 15:51:04 UTC
Permalink
Post by Bruno Zerbo
Hi guys,
I'm tring to build a simple program using soci. I read in the documentation
-ldl -lpq -lsoci_core -lsoci_postgresql
the program starts to run but then exit with the error in the object.
What's the problem?
Where did you install libsoci*so* files?
What's output of ldd command?

ldd /absolute/path/to/your/program
Post by Bruno Zerbo
I think that the problems could be around libdl that I can't find on my pc.
(what is this library for? Where I can download and build it?)
I compiled the last git version and I'm on kubuntu 13.04
http://packages.ubuntu.com/search?suite=raring&section=all&arch=any&keywords=libdl.so&searchon=contents

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Bruno Zerbo
2013-04-05 16:20:38 UTC
Permalink
ok, sorry.
sudo ldconfig and the problem was fixed
Post by Bruno Zerbo
Hi guys,
I'm tring to build a simple program using soci. I read in the
-ldl -lpq -lsoci_core -lsoci_postgresql
the program starts to run but then exit with the error in the object.
What's the problem?
I think that the problems could be around libdl that I can't find on my
pc. (what is this library for? Where I can download and build it?)
I compiled the last git version and I'm on kubuntu 13.04
Thanks,
Bruno
Loading...