Rootop 服务器运维与web架构

libraries: libiconv.so.2: cannot open shared object file

| 暂无评论

重启httpd报错:
/usr/local/apache/bin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

查看/usr/local/lib/libiconv.so.2 是存在的

第一种解决方法:
/etc/ld.so.conf中添加/usr/local/lib,再执行一下ldconfig

第二种:
ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/1256.html

作者:Venus

服务器运维与性能优化

发表回复