一. 报错现象

编译安Apache2.4.43报错checking for APR... no configure: error: APR not found. Please read the documentation.

 

 

二.解决方法

下载所需软件包,要安装新版本:

wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.6.5.tar.gz

wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz

wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip

 

1、解决apr not found问题

 tar -zxf apr-1.6.5.tar.gz
 cd  apr-1.6.5
 ./configure --prefix=/usr/local/apr
 make && make install

 

2、解决APR-util not found问题

tar -zxf apr-util-1.3.12.tar.gz
cd apr-util-1.3.12
./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config
make && make install 

 

3、解决pcre问题

unzip -o pcre-8.10.zip 
cd pcre-8.10
./configure --disable-shared --with-pic --prefix=/usr/local/pcre
make && make install

 

三.变更

./configure --prefix=/usr/local/apache2/ 

改用:

./configure --prefix=$H_PREFIX --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util 

这样报错就解决了

相关文章:

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