Chinaunix首页 | 论坛 | 博客
  • 博客访问: 318386
  • 博文数量: 84
  • 博客积分: 886
  • 博客等级: 准尉
  • 技术积分: 769
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-30 19:32
文章分类

全部博文(84)

文章存档

2018年(1)

2017年(2)

2014年(1)

2013年(50)

2012年(30)

我的朋友

分类: LINUX

2013-05-31 15:08:34


  1. #./configure --prefix……检查编辑环境时出现:
  2. checking for APR... no
  3. configure: error: APR not found . Please read the documentation.

  4. 可以用./configure –help | grep apr 查看帮助。
  5. --with-included-apr Use bundled copies of APR/APR-Util
  6. --with-apr=PATH prefix for installed APR or the full path to apr-config
  7. --with-apr-util=PATH prefix for installed APU or the full path to
  8. 安装APR(Apache Portable Runtime )
  9. [root@localhost ~]# cd /tmp/52lamp/ //源码存放位置
  10. [root@localhost 52lamp]# tar -zxvf apr-1.4.2.tar.gz //unzip -o apr-1.4.2.zip
  11. [root@localhost 52lamp]# cd apr-1.4.2
  12. [root@localhost apr-1.4.2]# ./configure
  13. [root@localhost apr-1.4.2]# make
  14. [root@localhost apr-1.4.2]# make install

  15. 再次检查编译环境出现
  16. checking for APR-util... no
  17. configure: error: APR-util not found . Please read the documentation.

  18. [root@localhost httpd-2.2.16]# ./configure –help | grep apr-util
  19. --with-apr-util=PATH prefix for installed APU or the full path to

  20. [root@localhost 52lamp]# tar -zxvf apr-util-1.3.9.tar.gz
  21. [root@localhost 52lamp]# cd apr-util-1.3.9
  22. [root@localhost apr-util-1.3.9]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
  23. [root@localhost apr-util-1.3.9]# make
  24. [root@localhost apr-util-1.3.9]# make install

  25. ./configure仍提示APR-util not found,增加--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util后出现
  26. configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

  27. [root@localhost httpd-2.2.16]# ./configure –help | grep pcre
  28. --with-pcre=PATH Use external PCRE library

  29. [root@localhost 52lamp]# unzip -o pcre-8.10.zip
  30. [root@localhost 52lamp]# cd pcre-8.10
  31. [root@localhost cd pcre-8.10]# ./configure --prefix=/usr/local/pcre
  32. [root@localhost cd pcre-8.10]# make
  33. [root@localhost cd pcre-8.10]# make install

  34. 继续安装Apache/httpd,./configure 时加上参数 --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre,这个问题就解决了。

阅读(1200) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~