开发者

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

开发者 https://www.devze.com 2023-03-22 12:07 出处:网络
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

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

精彩评论

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