您的位置:首页 > 运维架构 > Apache

Apache编译安装后启动报错: error while loading shared libraries: libiconv.so.2

2013-11-16 00:00 543 查看
[root@test181 httpd-2.0.63]# /application/apache/bin/apachectl start
/application/apache2.0.63/bin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
apache编译安装完成后启动时出现如上错误,加载libiconv.so.2库是发生错误。
解决:
1.在/etc/ld.so.conf中添加一行:/usr/local/lib
echo "/usr/local/lib" >> /etc/ld.conf
2.运行:/sbin/ldconfig ,问题解决。

ld.so.conf和ldconfig是维护系统动态链接库的
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐