启动APACHE出现“error while loading shared libraries: libiconv.so.2”
2011-04-07 15:27
736 查看
安装好apache后无法启动,出现如下错误:
error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
试着执行: ldd /usr/local/apache/bin/httpd
会看到这么一行
libiconv.so.2 => Not found
以前编译运行是可以的,可能是不久前升级一些库文件影响。在/usr/local/lib下可以找到libiconv.so.2,把/usr/local/lib加到路径中也不行。
在/etc/ld.so.conf中加一行/usr/local/lib,运行ldconfig。再运行apache,OK。
ld.so.conf和ldconfig是维护系统动态链接库的。
方法二:
ln -sf /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2
error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
试着执行: ldd /usr/local/apache/bin/httpd
会看到这么一行
libiconv.so.2 => Not found
以前编译运行是可以的,可能是不久前升级一些库文件影响。在/usr/local/lib下可以找到libiconv.so.2,把/usr/local/lib加到路径中也不行。
在/etc/ld.so.conf中加一行/usr/local/lib,运行ldconfig。再运行apache,OK。
ld.so.conf和ldconfig是维护系统动态链接库的。
方法二:
ln -sf /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2
相关文章推荐
- 启动APACHE出现“error while loading shared libraries: libiconv.so.2
- 启动APACHE出现“error while loading shared libraries: libiconv.so.2”
- 启动APACHE出现“error while loading shared libraries: libiconv.so.2”
- Apache启动报错: error while loading shared libraries: libiconv.so.2: cannot open shared object file···
- Apache编译安装后启动报错: error while loading shared libraries: libiconv.so.2
- Zabbix启动出现error while loading shared libraries: libiksemel.so.3: cannot open shared object file: No
- 启动Memcache,出现memcached: error while loading shared libraries: libevent-1.4.so.1: cannot open shared
- nginx 启动时出现 error while loading shared libraries: libpcre.so.1的错误
- Linux下出现error while loading shared libraries,...cannot open shared object file: No such file..
- /rsync: error while loading shared libraries: libiconv.so.2: cannot open shared object file:
- 启动nginx 报错 error while loading shared libraries: libpcre.so.1: cannot open shared object file
- locate strace 解决无法找到文件的问题,比如: error while loading shared libraries: libiconv.so.2
- ubuntu编译android出现error while loading shared libraries: libstdc++.so.6: cannot open shared objec的解决方法
- [置顶] 源码包安装后启动失败 error while loading shared libraries: libinotifytools.so.0: cannot open shared object fil
- Nginx启动错误:error while loading shared libraries: libpcre.so.1
- (转)Nginx启动出错 error while loading shared libraries
- error while loading shared libraries: libiconv.so.2:
- 安装Asterisk 12,启动报错:asterisk: error while loading shared libraries: libjansson.so.4: cannot open shar
- 安装ogg时出现./ggsci: error while loading shared libraries: libGGicu25.so: cannot open shared object file
- 启动Memcached报错:/usr/local/memcached/bin/memcached: error while loading shared libraries: libevent-2.1.so.6: cannot open shared object file: No such file or directory