当前位置: 技术问答>linux和unix
libxml++连接库问题!急!
来源: 互联网 发布时间:2015-11-07
本文导语: 请问高手们: 我用libxml++库,编译成功了,编译如下: g++ xml... -I /usr/local/libxml++-1.0.5/ -lxml++-1.0 但运行程序时出现下面错误: ./xml: error while loading shared libraries: libxml++-1.0.so.1: cannot open shared object file: No suc...
请问高手们:
我用libxml++库,编译成功了,编译如下:
g++ xml... -I /usr/local/libxml++-1.0.5/ -lxml++-1.0
但运行程序时出现下面错误:
./xml: error while loading shared libraries: libxml++-1.0.so.1: cannot open shared object file: No such file or directory
而libxml++-1.0.so.1是在目录/usr/local/lib里,
我上网看过有人说改变path环境变量,我已把其改了,但还是出现上述错误,
请高手指点!
我用libxml++库,编译成功了,编译如下:
g++ xml... -I /usr/local/libxml++-1.0.5/ -lxml++-1.0
但运行程序时出现下面错误:
./xml: error while loading shared libraries: libxml++-1.0.so.1: cannot open shared object file: No such file or directory
而libxml++-1.0.so.1是在目录/usr/local/lib里,
我上网看过有人说改变path环境变量,我已把其改了,但还是出现上述错误,
请高手指点!
|
设置LD_LIBRARY_PATH环境变量:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib