zoukankan      html  css  js  c++  java
  • 编译apache报APR not found

    系统环境:

    [vagrant@rs-2 download]$ cat /etc/redhat-release 

    CentOS release 5.6 (Final)

    [vagrant@rs-2 download]$ uname -a

    Linux rs-2 2.6.18-238.el5 #1 SMP Thu Jan 13 15:51:15 EST 2011 x86_64 x86_64 x86_64 GNU/Linux


    编译apache 2.4.9

    [vagrant@rs-1 httpd-2.4.9]$ ./configure --prefix=/usr/local/apache


    编译apache, 遇到下面错误

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


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



    http://archive.apache.org/dist/apr/去下载相关包

    [vagrant@rs-1 download]$ wget http://archive.apache.org/dist/apr/apr-1.5.1.tar.gz

    [vagrant@rs-1 download]$ wget http://archive.apache.org/dist/apr/apr-util-1.5.3.tar.gz



    安装 apr 包

    [vagrant@rs-1 apr-1.5.1]$ ./configure --prefix=/usr/local/apr

    [vagrant@rs-1 apr-1.5.1]$ make

    [vagrant@rs-1 apr-1.5.1]$ sudo make install



    安装apr-util

    [vagrant@rs-1 apr-util-1.5.3]$ ./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config 


    [vagrant@rs-1 apr-util-1.5.3]$ make 


    [vagrant@rs-1 apr-util-1.5.3]$ sudo make install


    最后,编译apache时候加上
    --with-apr=/usr/local/apr
    --with-apr-util=/usr/local/apr-util/

    [vagrant@rs-1 httpd-2.4.9]$ ./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/



  • 相关阅读:
    Shell基本语法
    CURL简单使用
    <C> 字符串简单习题
    <C> 字符串相关的函数
    <C> 内存分区
    <C> 最大值以及最大值下标 二分查找(折半查找)
    <C> 函数 函数指针
    <C> 冒泡排序及其非常非常非常简单的优化
    <C> typedef 宏 const 位运算
    <C> 数组
  • 原文地址:https://www.cnblogs.com/mqxnongmin/p/10742390.html
Copyright © 2011-2022 走看看