Apache安装问题:configure: error: APR not found . Please read the documentation

来源:互联网 发布:重装系统xp软件 编辑:程序博客网 时间:2024/05/01 19:58

Linux上安装Apache时,编译出现错误: 

 

checking for APR... noconfigure: error: APR not found .  Please read the documentation

 

安装APR,下载所需软件包,如果此时计算机可以上网,执行命令下载文件:

wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gzwget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gzwget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip

 

apr not found问题

tar -zxf apr-1.4.5.tar.gzcd  apr-1.4.5./configure --prefix=/usr/local/aprmake && make install

 

APR-util not found问题

tar -zxf apr-util-1.3.12.tar.gzcd apr-util-1.3.12./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-configmake && make install

 

pcre问题

unzip -o pcre-8.10.zipcd pcre-8.10./configure --prefix=/usr/local/pcremake && make install

 

最后编译Apache时加上:

--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre

 
例如:

./configure --prefix=/usr/local/apache2 --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre

 

请您到ITEYE网站看 java小强 原创,谢谢!
http://cuisuqiang.iteye.com/

自建博客地址:http://www.javacui.com/ ,内容与ITEYE同步!

  • apr-1.4.5.tar.gz (971 KB)
  • 下载次数: 0
  • apr-util-1.3.12.tar.gz (751.1 KB)
  • 下载次数: 0
  • pcre-8.10.zip (1.3 MB)
  • 下载次数: 0
0 0