error while loading shared libraries
Hi, all,
I was trying to run a c++ program. Because I don't have root permission to install Boost C++ library, I installed it under my home local directory: /home/username/boost. The boost version I installed is boost_1_49_0. There is a .bashrc file under /home/username/ directory, I made the following settings to this .bashrc file:
export LD_LIBRARY_PATH=/home/username/boost/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=/home/username/boost/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=/home/username/boost/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/home/username/boost/include:$CPLUS_INCLUDE_PATH
There was a makefile, so when compiling, I used:
make -l/home/username/boost/lib
but there is an error when run the main: error while loading shared libraries: libboost_program_options.so.1.42.0: cannot open shared object file: No such file or directory
I also tried to run: export LD_LIBRARY_PATH=/home/username/boost/stage/lib, but it didn't work.
I am quite a newbie, does anyone can help me?
Thanks a lot.
Last edited by vicku; 07-05-2012 at 10:34 PM.
|