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

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

解决办法

wget http://apache.freelamp.com/apr/apr-1.4.2.tar.gz  下载apr

./configure –prefix=/usr/local/apr

make

make  install

wget http://apache.freelamp.com/apr/apr-util-1.3.10.tar.gz

./configure –prefix=/usr/local/web/apr-util –with-apr=/usr/local/apr

make

make install

3  ../configure仍提示APR-util not found,增加--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util后出现

configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

#./configure –help | grep pcre

--with-pcre=PATH        Use external PCRE library

下载:http://sourceforge.net/projects/pcre
下载地址二:http://ftp.exim.llorien.org/pcre/

#unzip -o pcre-8.10.zip

#cd pcre-8.10

#./configure --prefix=/usr/local/pcre

#make

#make install

最后安装apahce:

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

make

make install

参考:

http://www.itokit.com/2012/0430/73710.html

http://www.linuxqq.net/archives/229.html

转载于:https://www.cnblogs.com/Anker/p/3355573.html

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

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

    参考:http://cuisuqiang.iteye.com/blog/2068794 http://www.cnblogs.com/Anker/p/3355573.html pcre: https: ...

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

    本文出自 "____哊.時^随记" 博客,请务必保留此出处http://xtony.blog.51cto.com/3964396/836508 解决了我的问题 解决编译apache ...

  3. configure : error : no acceptable C compiler found in $PATH 解决办法

    问题 ./configure 检测我们的系统环境.可以发现此时报错了,报错内容显示我们没有C的编辑器,所以我们此时要装一个C的编辑器 解决办法 装一个C的编辑器,没有yum源的可以点击链接,先进行搭建 ...

  4. [CentOS]CentOS下编译CPP文件时报错[undefined reference to `__gxx_personality_v0' collect2: ld]的解决办法...

    在CentOS环境下编译CPP时报出 undefined reference to `__gxx_personality_v0' collect2: ld 以上错误,调查了一下,加上参数[-lstdc ...

  5. linux安装源码包出现apr错误,Linux源码安装Apchae时报错:error: APR not found.Please read the documentation....

    配置的时候报错: checking for APR... no configure: error: APR not found . Please read the documentation 解决方法 ...

  6. Linux解决编译Apache出现的问题:configure: error: APR not found

    问题 #./configure --prefix--检查编辑环境时出现: checking for APR... no configure: error: APR not found . Please ...

  7. linux apr文件解压失败,Apache编译安装提示configure: error: APR not found错误解决方法...

    在配置Apache的时候,出现configure: error: APR not found错误 原因是缺少一些依赖包,安装这些依赖包就行了 下载依赖包,注意我这里下载的与参考链接上的有些不同,安装上 ...

  8. Linux/CentOS下安装Apache/SVN/Subversion图文详解教程

    Linux(CentOS)下安装Apache+Subversion(图文教程) 服务器版本和安装软件 服务器版本: RedHatCentOS 5.5 32 bit 安装软件: apr-1.3.5.ta ...

  9. 在CentOS下安装apche+tomcat+mysql+php

    在CentOS下安装apche+tomcat+mysql+php 本例中所用到的软件 Apache 2.2 Sun的JDK-1_5_0_12-linux-i586 MySQL: mysql-5.0.4 ...

最新文章

  1. 自签名证书说明——自签名证书的Issuer和Subject是一样的。不安全的原因是:没有得到专业SSL证书颁发的机构的技术支持?比如使用不安全的1024位非对称密钥对,有效期设置很长等...
  2. 【转】Virtualbox虚拟机配置安装CentOS 6.5图文教程
  3. 如何使用MATLAB绘制不同类型的二维图形
  4. AtCoder AGC019E Shuffle and Swap (DP、FFT、多项式求逆、多项式快速幂)
  5. POJ2594(二分匹配+Floyd求传递闭包)
  6. 修改linux文件夹密码忘记,Linux中如何重新获取丢失的密码
  7. android自定义图标下载,charts
  8. web移动端开发经验总结
  9. 根据个人亲身进阶架构师经历系统构建20大进阶架构师专题!
  10. prefetch 和preload_preload_prefetch
  11. oracle死锁模拟,Oracle死锁的模拟和处理
  12. Firewalld防火墙转换成Iptables
  13. JDY-24M主机使用手册
  14. 2017京东实习生笔试题之异或
  15. 什么是绿色工厂,怎么进行绿色工厂认证
  16. 数据结构实验之排序八:快速排序
  17. Web过滤器:Filter
  18. 亚马逊、微软、谷歌,谁将是5000亿美元云市场的C位?
  19. java 对象查找_Java如何从数组中查找对象元素?
  20. git 修改倒数二个 commit

热门文章

  1. 瓦力机器人故障维修_大眼萌!5G巡逻机器人亮相乌镇,24小时值守互联网大会...
  2. python3命令行运行程序怎么关闭_python中怎样退出程序运行?
  3. 电话号码中间四位用****代替
  4. 【新星计划】汽车纵向动力学模型
  5. mysql数据库检表_MYSQL数据库检查数据表和修复数据表
  6. error java on syntax token_解决Java“syntax error on token enum”问题
  7. C/C++训练1---最大公约数与最小公倍数_JAVA
  8. 【opencv】5.cv::findContours和cv::drawContours()
  9. 走近Java模块化系统OSGi
  10. JavaScript 常用函数总结