解决安装Apache中出现checking for APR... no configure: error: APR not found. Please read the documentation的问题

Linux中安装Apache 编译出现问题:

解决办法:

1、下载所需要的软件包

wget http://archive.apache.org/dist/apr/apr-1.4.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  

2、为了下面编译不报错,最好先装上编译环境和工具

yum -y install gcc+ gcc-c++

3、解决APR not found报错

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

4、解决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 

5、解决pcre问题

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

6、最后编译加上

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

7、完成。

原文地址:https://www.cnblogs.com/fqszywz/p/8921491.html

时间: 2024-11-09 18:05:40

解决安装Apache中出现checking for APR... no configure: error: APR not found. Please read the documentation的问题的相关文章

Linux下安装过程中编译PHP时报错:configure: error: libjpeg.(a|so) not found

在Linux下安装PHP过程中,编译时出现configure: error: libjpeg.(a|so) not found 错误的解决的方法: 检查之后发现已经安装libjpeg.可是/usr/lib文件夹下没有libjpeg.so这个文件,在/usr/lib64下是有的,使用–with-jpeg-dir=/usr/lib64 依旧无效, 最后用ln -s /usr/lib64/libjpeg.so /usr/lib/libjpeg.so问题解决 libpng报错解决方法一样

解决编译apache出现的问题:configure: error: APR not found . Please read the documentation

今日编译apache时出错: #./configure --prefix……检查编辑环境时出现: checking for APR... no configure: error: APR not found .  Please read the documentation 解决办法: 1.下载所需软件包: apr以及apr-util官网 http://apr.apache.org/download.cgi wget http://apache.fayea.com//apr/apr-1.5.2.t

linux 上安装apache 出现 configure: error: APR not found. Please read the documentation错误

今日编译apache时出错: #./configure --prefix……检查编辑环境时出现: checking for APR... noconfigure: error: APR not found .  Please read the documentation 解决办法: 1.下载所需软件包: wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz wget http://archive.apache.org/dist/apr/

[apache2.4]configure: error: APR not found. Please read the documentation.

apache2.4 安装出现如下错误 ``` [[email protected] httpd-2.4.10]$ ./configure checking for chosen layout... Apache checking for working mkdir -p... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking b

转 Centos下安装apahce的configure: error: APR not found. Please read the documentation解决办法

转自: http://www.cnblogs.com/Anker/p/3355573.html 今天从Apache官网上http://httpd.apache.org/下载httpd web服务器,由于我的虚拟机上之前安装过,我先yum remove httpd进行卸载,然后重新安装.我采用的是源码安装,先进行./configure --prefix=/usr/local/apahce  --enable-so ,提示以下错误: configure: error: APR not found.

源码安装Apache,报错:Cannot use an external APR with the bundled APR-util和httpd: Could not reliably determine the server's fully qualified domain name

一.解决APR和APR-util错误: 1.1.安装APR: [[email protected] httpd-2.2.23]# cd srclib/apr [[email protected] apr]# ./configure --prefix=/usr/local/apr root@ganglia apr]# make && make install 1.2.安装APR-util: [[email protected] apr]# cd ../apr-util/ [[email pr

php安装redis扩展'checking for igbinary includes... configure: error: Cannot find igbinary.h'解决方法

今天准备给yii2安装redis扩展,先安装了redis服务,然后安装redis php官方扩展,在make的时候提示' checking for igbinary includes... configure: error: Cannot find igbinary.h ' 上stackoverflow搜了下,说是默认安装Igbinary库的路径在/usr/local/php/indclude下面,改成/usr/php/include即可,看了一下服务器上根本没有装这个扩展,只能先装Igbina

configure: error: APR not found. Please read the documentation

本以为Apache的编译安装很简单,其实不然: 以前的环境下编译报错很少 ,但这次不行了 提示configure: error: APR not found. Please read the documentation. 经网上查阅资料才知道这是Apache的关联软件 在apr.apache.org网站上可以下载此软件(apr-1.4.5.tar.gz):编译安装完成后:本以为就可以相安无事的进行Apache的安装 :没想到 突然间报了个 configure: error: APR-util n

checking for SSL headers... configure: error: Cannot find ssl headers

" checking for SSL headers... configure: error: Cannot find ssl headers" 原因是缺少openssl-devel,安装这个库就可以解决问题. yum -y install openssl-devel checking for SSL headers... configure: error: Cannot find ssl headers,码迷,mamicode.com