PHP World

首页 > System > Apache › CentOS安装Apache错误

CentOS安装Apache错误

1. CentOS: error while loading shared libraries: libpcre.so.0的解决办法

今天安装一台新的linux云服务器,在卸载pcre时,因没有备份libpcre.so.0文件便执行命令“rpm -e pcre –nodeps”,导致丢失libpcre.so.0文件。结果可想而知,新版的pcre再也安装不上了,apache2也无法再编译了。只要一编译,就提示错误:

   error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory。

# yum -y install pcre


2. 安装apr: ./configure --prefix=/usr/local/apr

   rm: cannot remove `libtoolT': No such file or directory

# cd /lamp/api-1.5.2
$vi configure

Edit your configure file


Change the line

$RM "$cfgfile"

to:

$RM -f "$cfgfile"

This will resolve the error: rm: cannot remove `libtoolT': No such file or directory

Then try run configure. That's it :)

上一篇:CentOS卸载Apache方法详解

下一篇:如何在CentOS给Apache2.4.20安装虚拟主机?

相关文章