在安装或者升级成Apache2.4版本时可能会一些错误,我们在实际生产环境中Apache是需要定制编译参数的,以实现生产环境的服务定制,但是用旧的编译参数时一般会报这样的错误,如下:
…略…
checking for APR... configure: WARNING: APR version 1.4.0 or later is required, found 1.3.9
configure: WARNING: skipped APR at apr-1-config, version not acceptable
no
configure: error: APR not found. Please read the documentation.
报这个错是因为我们原先在Apache2.2或者以下的版本中Apache依赖包apr、apr-util、pcre的版本使用yum或者是apt-get上的rpm包版本太低了,而Apache2.4中里这3种依赖包就需要用新的,在这里建议使用源码编译包安装,先用links看一下最新的包,当然用links也可以直接用links下载文件,当然尽量使用最新的包
[root@localhost src]# links http://archive.apache.org/dist/apr/
[root@localhost src]# links http://jaist.dl.sourceforge.net/project/pcre/pcre/
#找一下最新的编译包
[root@localhost src]# wget http://archive.apache.org/dist/apr/apr-1.5.2.tar.bz2
[root@localhost src]# wget http://archive.a