|
Boost Users : |
Subject: [Boost-users] cannot open shared object file
From: Mike Douglass (douglassm13_at_[hidden])
Date: 2010-11-03 01:07:47
Downloaded the trunk ( Today Nov 2 )
Did:
./bjam --with-libraries=graph,regex
./bjam
compiled OK.
mv boost-trunk/stage/lib/* /usr/local/lib
mv boost-trunk/boost /usr/include
my program plc.cpp compiled OK with the following makefile.
g++ -ggdb -O3 plc.cpp -o plc -I./Includes -L/usr/local/lib -lboost_graph
-lboost_regex
But running plc gave the following error
./plc < graph.xml > out.xml
./plc: error while loading shared libraries: libboost_graph.so.1.45.0: cannot
open shared object file: No such file or directory
But clearly libboost_graph.so.1.45.0 is there.
[george_at_localhost lib]$ ls -lrt /usr/local/lib
total 6768
-rwxr-xr-x 1 root root 1155683 Nov 2 20:57 libboost_regex.so.1.45.0
-rwxr-xr-x 1 root root 1155683 Nov 2 20:57 libboost_regex.so
-rw-r--r-- 1 root root 2563346 Nov 2 20:57 libboost_regex.a
-rwxr-xr-x 1 root root 534275 Nov 2 20:57 libboost_graph.so.1.45.0
-rwxr-xr-x 1 root root 534275 Nov 2 20:57 libboost_graph.so
-rw-r--r-- 1 root root 923492 Nov 2 20:57 libboost_graph.a
[george_at_localhost lib]$
Whats wrong?
Running Centos 5.5
[george_at_localhost Program]$ uname -a
Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux
Thanks
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net