今天给在linux下运行程序时升级时,重启Apache 出现
error while loading shared libraries这种错误,之前Apache一直都运行正常,仔细研究了下终于找到的了解决方案,写下来备份下。
./tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory
出现这类错误表示,系统不知道xxx.so放在哪个目录下,这时候就要在/etc/ld.so.conf中加入xxx.so所在的目录。
一般而言,有很多的so会存放在/usr/local/lib这个目录底下,去这个目录底下找,果然发现自己所需要的.so文件。
所以,在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。
分享到:
相关推荐
linux运行zipalign报错“error while loading shared libraries: libc++.so“ 相关文章链接https://blog.csdn.net/u010775335/article/details/124869330
主要介绍了安装ImageMagick出现error while loading shared libraries的解决方法,是ImageMagick安装与运行中经常出现的问题,需要的朋友可以参考下
一般我们在Linux下执行某些外部程序的时候可能会提示找不到共享库(error while loading shared libraries xx.so)的错误
libssl.so.10缺失库文件的解决办法,error while loading shared libraries :libssl.so.10:cannot open shared object file:No such file or directory
MYSQL之 error while loading shared libraries: libtinfo.so.5: cannot open shared objectfile: No such f-附件资源
errorloadingos解决方法[文].pdf
本文提供了解启动MongoDB时提示:error while loading shared libraries: libstdc++.so.6: cannot open shared object file: 错误的解决方案
deepstream-app: error while loading shared libraries: libnvinfer.so.7: cannot open shared object file: No such file or directory
报错内容:sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 启动时如果报异常error while loading shared libraries: libpcre.so....
bedGraphToBigWig: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory 就将使用root用户,将这两个文件放到/usr/lib64/ 或则使用: ln -s /usr/...
NULL 博文链接:https://java-doom.iteye.com/blog/1821918
该文件可以用于解决启动verdi后的报错,verdi/platform/LINUXAMD64/bin/ Novas: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory 注意适用于64...
libXp.so.6: cannot open shared object file: No such file or directory [oracle@dbadb1 ~]$ ls -ld /usr/lib/libXp.so.6 ls: /usr/lib/libXp.so.6: No such file or directory [root@dbadb1 zhuxu]# rpm -ivh...
从 ubuntu16.04 里复制出来的 libpng12.so.0 是64位系统库,使用时需要复制到路径 /usr/lib/x86_64-linux-gnu
bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directoryPlease specify the final destination directory for installed Postfix ...
从运维青铜到运维白银再到运维黄金,这里就要牵扯到方向问题也就是装备,根据自己的爱好,每个人都应该选择一个适合自己和喜欢自己的一个职业技术方向,如:大数据安全,开发运维,云计算运维等等。...