- First I built the Boost libraries that require building by going to
/usr/local/boost_1_49_0/and running thebootstrap.sh. This went off alright. - Step (1) created all the
.soand.afiles in/usr/local/boost_1_49_0/stage/lib - I tested linking against a library, say
lboost_regexand#include <boost/regex>in my source code. This also went off alright. Finally trying out the example on asio, I tried:
g++ -I/usr/local/boost_1_49_0 MAIN.cpp -o MAIN -L/usr/local/boost_1_49_0/stage/lib -lboost_thread -lboost_system -lpthread
(4) compiled alright. But when I run the program with ./MAIN, I get the following error:
./MAIN: error while loading shared libraries: libboost_system.so.1.49.0: cannot open shared object file: No such file or directory