开发者

Error while loading shared library: libconfig++.so.9

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜