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


[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是维护系统动态链接库的

你可能感兴趣的:(apache,启动报错,编译安装后)