While I compile the code in Makefile, I've put LINKPATH = -L/usr/local/lib in the g++ line. And of course "libconfig++.so.9" is under /usr/local/lib
But when I execute th开发者_StackOverflowe executable file, it still says cannot find libconfig++.so.9.
Anyone knows why?? Appreciate any help.
You should define LD_LIBRARY_PATH. For example:
export LD_LIBRARY_PATH=/usr/local/lib
or just use
sudo ldconfig -v
精彩评论