`
wanxiaotao12
  • 浏览: 454646 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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

 
阅读更多

#./configure --prefix……检查编辑环境时出现:

checking for APR... no
configure: error: APR not found .  Please read the documentation

解决办法:

1.下载所需软件包:

  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   

2.编译安装:

  1. yum remove apr-util-devel apr apr-util-mysql apr-docs apr-devel apr-util apr-util-docs 

具体步骤如下:

  a:解决apr not found问题>>>>>>

  1. [root@xt test]# tar -zxf apr-1.4.5.tar.gz  
  2. [root@xt test]# cd  apr-1.4.5  
  3. [root@xt apr-1.4.5]# ./configure --prefix=/usr/local/apr  
  4. [root@xt apr-1.4.5]# make && make install  
  5.  

  b:解决APR-util not found问题>>>>

  1. [root@xt test]# tar -zxf apr-util-1.3.12.tar.gz  
  2. [root@xt test]# cd apr-util-1.3.12  
  3. [root@xt apr-util-1.3.12]# ./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config  
  4. [root@xt apr-util-1.3.12]# make && make install 


  c:解决pcre问题>>>>>>>>>

  1. [root@xt test]#unzip -o pcre-8.10.zip  
  2. [root@xt test]#cd pcre-8.10  
  3. [root@xt pcre-8.10]#./configure --prefix=/usr/local/pcre  
  4. [root@xt pcre-8.10]#make && make install 

4.最后编译Apache时加上:

--with-apr=/usr/local/apr \

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

 --with-pcre=/usr/local/pcre

成功编译完成~

 

转自:http://xtony.blog.51cto.com/3964396/836508

分享到:
评论

相关推荐

    Apache遇到的问题 APR not found问题的解决方法

    checking for APR... no configure: error: APR not found . Please read the documentation

    apr-1.7.0.zip

    apache-http源码编译 1、httpd-2.4.41.tar 2、apr-1.7.0.tar 报错: rm: cannot remove `libtoolT': No such file or..../configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr=/usr/local/apr

    apache2.4完整安装

    apache2.4完整安装,解决configure: error: APR-util not found. Please read the documentation问题

    安装linux编译时报apr错误的解决方法

    安装linux编译时报apr错误的解决方法 httpd-2.4.3.tar.gz, apr-util-1.3.10.tar.gz, apr-1.4.2.tar.gz,

    apr-util-1.6.1.zip

    apache-http源码编译 1、httpd-2.4.41.tar 2、apr-1.7.0.tar 报错: rm: cannot remove `libtoolT': No such file or..../configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr=/usr/local/apr

    apr-iconv-1.2.1.tar.gz 、apr-util-1.5.4.tar.gz、apr-1.5.2.tar.gz

    接着安装apr-util和iconv,方法一样不过./configure --with-apr=/usr/local/apr指明一下apr安装位置就可以了,不写也会提示写上。 最后还要在/etc/profile里加上lib库 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/...

    device-mapper.1.02.28.tgz

    在编译parted-3.2时,报错:configure: error: libdevmapper could not be found,找到device-mapper.1.02.28,并下了下来。 这个源码藏得有点深,分享出来给大家

    httpd-2.4.53.tar.gz及apr-1.4.5.tar.gz apr-util-1.3.12.tar.gz编译解答

    编译时./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre --with-included-apr会报错 其实apr和apr-util安装在/usr/locl/apr...

    安装lamp报错信息及解决方法

    /use/lib//usr/lib/libdb-4.2.so: could not read symbols: File in wrong format Notice: Following unknown configure options were used: usr/bin/ld: cannot find -lltdl /usr/bin/ld: cannot find -...

    CentOS7升级GCC版本到gcc 8.3.0,解决GLIBCXX-3.4.21 not found 问题

    解决/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found 问题 步骤如下: 解压文件: $ unzip gcc-8.3.0.zip 解压完成,进入文件目录: $ cd gcc-8.3.0 利用源码包里自带的工具下载所需要的依赖项: $ ./...

    google api php client

    The method used is a matter of preference, but *it will be very difficult to use this library without first understanding the JSON syntax for the API*, so it is recommended to look at the [APIs ...

    PHP编译configure时常见错误的总结

    PHP编译configure时常见错误的总结 ...其实不管是你是Apache类的应用还是Nginx类的,PHP的安装都不是很简单,虽然网上有很多...1、configure: error: No curses/termcap library found 网上有的说法是:–with-named-c

    gmp 5.0.4 安装GCC必需文件

    There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface.

    64位下编译GD出错问题

    如果GD报错:configure.ac:64: warning: macro `AM_ICONV' not found in library 你就make clean一下,然后再make 如果你安装别的出现libtool没有找到,你就从/usr/bin/libtool cp 一个过来用就好了! 在64位下编译...

    Ubuntu 12.04 x64 编译安装lamp的步骤

    编译安装apache 2.4.2 代码如下: sudo echo ‘start’ echo 常见错误: echo configure: error: APR not found. Please read the documentation. echo 解决办法: wget ...

    nginx使用ageip 实现地区负载均衡

    configure: error: Zlib header (zlib.h) not found. Tor requires zlib to build. You may need to install a 解决办法: root@ubuntu:/usr/src/GeoIP-1.4.8# apt-get install zlib1g-dev 再次编译,顺利通过 make ...

    httpd-2.4.41.rar

    源码编译:亲测有效! 1、httpd-2.4.41.tar 2、apr-1.7.0.tar 报错: rm: cannot remove `libtoolT': No such file ..../configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr=/usr/local/apr

    konqueror-embedded-ok.tar.bz2

    configure: error: Qt (>= Qt 2.2.2) (library qte) not found. Please check your.... 具体参考我的博客:http://blog.csdn.net/niyufeng/article/details/7233102《6.1 qtopia-2.2.0上实现konqueror网页浏览器 ...

    wireshark-1.12.0最新源码

    configure: error: Header file pcap.h not found; if you installed libpcap from source, did you also do "make install-incl", and if you installed a binary package of libpcap, is there also a developer's...

    automake autotools autoconf

    用autoconf和automake自动生成Makefile,其中要用到的,其中要用到的automake,autotools,autoconf这三个文档

Global site tag (gtag.js) - Google Analytics