默认情况下,编译器只会使用/lib和/usr/lib这两个目录下的库文件,通常通过源码包进行安装时,如果不指定--prefix,会将库安装在/usr/local/lib目录下:当运行程序需要链接动态库时,提示找不到相关的.so库,会报错.也就是说,/usr/local/lib目录不在系统默认的库搜索目录中,需要将目录加进去. 1.首先打开/etc/ld.so.conf文件 2.加入动态库文件所在的目录:执行vi /etc/ld.so.conf,在"include ld.so.conf.d/*.c…
在编译引用了第三方库的代码后,执行出现了以下错误 [work@xxx zktest]$ ./a.out ./a.out: error while loading shared libraries: libzookeeper_st.so.2: cannot open shared object file: No such file or directory 这就是依赖的动态库找不到路径导致的 可以用ldd命令来看一下依赖的库的路径 [work@xxx zktest]$ ldd a.out     …
http://blog.csdn.net/wallwind/article/details/7580659 错误信息: error while loading shared libraries: libXXX.so.11.1: cannot open shared object file: No such file or directory locate libXXX.so.1.2.3 (如果你的文件系统比以前有了变化,如安装了可能是需要的库的开发包,则需要 locate -u 一下) libX…
原因有两个: 1.操作系统没有改共享库 2.安装了该共享库,但是执行外部程序调用该共享库的时候,程序按照默认路径(/usr/lib./lib)找不到该共享库文件 解决方法: ubuntu系统的共享库一般安装在/usr/local/lib目录下,如果不确定,可以使用ls  /usr/local/lib查看里面是否有你需要的库文件 然后打开/etc/ld.so.conf,在文件最后添加/usr/local/lib(或者在命令行输入echo "/usr/local/lib" >>…
installing the Devel\gettext package should solve your problem. git-submodule requires that. Unfortunately this is not marked as dependency. 附apt-cyg工具:https://code.google.com/p/apt-cyg/…
执行以下代码,生成唯一的UID $fp = popen("/xxx/bin/tools/uuidgen system", "r");// $uid = fread($fp, 40960); pclose($uid); 问题:返回结果$uid为空.实际上执行popen函数后能够返回内容 resource(39) of type (stream). resource popen ( string $command , string $mode ) 参数:$command…
问题 在Centos7上编译安装openssl后,运行openssl version出现如下错误: openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory 这是由于openssl库的位置不正确造成的. 解决方法: 在root用户下执行: ln -s /usr/local/lib64/libssl.so.1.1 /u…
今天在执行一个protobuf程序时,提示error while loading shared libraries: libprotobuf.so.8: cannot open shared object file: No such file or directory错误.google了一下,是由于找不到lib这个文件. 解决办法: 一般我们在Linux下执行某些外部程序的时候可能会提示找不到共享库的错误, 比如: tmux: error while loading shared librari…
[转]"error while loading shared libraries: xxx.so.x" 错误的原因和解决办法 http://blog.csdn.net/sahusoft/article/details/7388617 一般我们在Linux下执行某些外部程序的时候可能会提示找不到共享库的错误, 比如: tmux: error while loading shared libraries: libevent-1.4.so.2: cannot open shared obje…
解决软件启动报error while loading shared libraries: libgd.so.2: cannot open shared object错误 今天安装启动nginx的时候报这个错误:error while loading shared libraries: libgd.so.2: cannot open shared object,网上查了相关资料,解决了,在此记录下,也让后面遇到这个问题的朋友能快速解决. 先说解决办法,帮助着急解决问题的朋友,这个是因为缺失gd库,…