标签:apache required rom 最新版 tin 需要 rpm 下载地址 解压
一.
configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.
输入: rmp -qa | grep apr
[root@localhost httpd-2.4.7]# rpm -qa | grep apr
apr-util-ldap-1.3.9-3.el6_0.1.x86_64
apr-util-1.3.9-3.el6_0.1.x86_64
apr-1.3.9-3.el6_1.2.x86_64
报错原因是因为 apr的1.3.9版本只适用 httpd2.2版本的,而httpd2.4版本的要用apr 1.4版本以上的
wget -c http://apache.etoak.com/apr/apr-util-1.4.1.
tar
.gz
wget -c http://apache.etoak.com/apr/apr-1.4.6.
tar
.gz
tar
-xzvf ./apr-1.4.6.
tar
.gz
tar
-xzvf ./apr-utli-1.4.1.
tar
.gz
需要下载apr 和apr-utils并解压到 /srclib/目录下,再编译
[root@localhost lamp]# cp -r apr-1.4.6 httpd-2.4.7/srclib/apr
[root@localhost lamp]# cp -r apr-util-1.4.1 httpd-2.4.7/srclib/apr-util
二.
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
下载地址: http://jaist.dl.sourceforge.net/project/pcre/pcre/ 找最新版下
得到文件: pcre-8.32.tar.gz
解压:tar -zxvf pcre-8.32.tar.gz
[root@localhost pcre-8.32]# ./configure
[root@localhost pcre-8.32]# make && make install
三.
libtool: link: cannot find the library `/lamp/httpd-2.4.7/srclib/apr-util/xml/expat/libexpat.la‘ or unhandled argument `/lamp/httpd-2.4.7/srclib/apr-util/xml/expat/libexpat.la‘
make[2]: *** [libaprutil-1.la] 错误 1
make[2]: Leaving directory `/lamp/httpd-2.4.7/srclib/apr-util‘
make[1]: *** [install-recursive] 错误 1
make[1]: Leaving directory `/lamp/httpd-2.4.7/srclib‘
make: *** [install-recursive] 错误 1
我解决的方法:http://www.cnblogs.com/ly0199/p/4078963.html
有些系统会出现cannot find the library `.../srclib/apr-util/xml/expat/libexpat.la‘ or unhandled argument `.../srclib/apr-util/xml/expat/libexpat.la‘错误,可以在 ./configure 后面加上 --with-expat=builtin
参考的网址:
参考网址:http://blog.sina.com.cn/s/blog_4edd2a190100upv3.html
标签:apache required rom 最新版 tin 需要 rpm 下载地址 解压
原文地址:http://www.cnblogs.com/Jane0308/p/6529611.html