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

 

Java代码  Apache安装问题:configure: error: APR not found . Please read the documentation
  1. checking for APR... no  
  2. configure: error: APR not found .  Please read the documentation  

 

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

Java代码  Apache安装问题:configure: error: APR not found . Please read the documentation
  1. wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz  
  2. wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz  
  3. wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip  

 

apr not found问题

Java代码  Apache安装问题:configure: error: APR not found . Please read the documentation
  1. tar -zxf apr-1.4.5.tar.gz  
  2. cd  apr-1.4.5  
  3. ./configure --prefix=/usr/local/apr  
  4. make && make install  

 

APR-util not found问题

Java代码  Apache安装问题:configure: error: APR not found . Please read the documentation
  1. tar -zxf apr-util-1.3.12.tar.gz  
  2. cd apr-util-1.3.12  
  3. ./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config  
  4. make && make install  

 

pcre问题

Java代码  Apache安装问题:configure: error: APR not found . Please read the documentation
  1. unzip -o pcre-8.10.zip  
  2. cd pcre-8.10  
  3. ./configure --prefix=/usr/local/pcre  
  4. make && make install  

 

最后编译Apache时加上:

Java代码  Apache安装问题:configure: error: APR not found . Please read the documentation
  1. --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre  

 
例如:

Java代码  Apache安装问题:configure: error: APR not found . Please read the documentation
  1. ./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/

相关文章:

  • 2021-07-21
  • 2021-10-19
  • 2022-12-23
  • 2021-11-14
  • 2021-10-17
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
猜你喜欢
  • 2021-05-23
  • 2022-12-23
  • 2021-11-14
  • 2021-08-14
相关资源
相似解决方案