aprutil编译报错
应该是安装的组件不对吧,以下是我安装的安装步骤:
tar zxvf apr-1.5.1.tar.gz
cd apr-1.5.1/
./configure--prefix=/root/server/lib/apr/apr-1.5.1
make
make install
tar zxvf apr-util-1.5.3.tar.gz
cd apr-util-1.5.3/
./configure--prefix=/root/server/lib/apr/apr-util-1.5.3--with-apr=/root/server/lib/apr/apr-1.5.1
make
make install
unzip pcre-8.35.zip
cd pcre-8.35/
./configure--prefix=/root/server/lib/pcre/pcre-8.35
make
make install
tar zxvf zlib-1.2.8.tar.gz
cd zlib-1.2.8/
./configure--prefix=/root/server/lib/zlib/zlib-1.2.8
make
make install
tar zxvf httpd-2.4.9.tar.gz
cp -rf apr-1.5.1 httpd-2.4.9/srclib/apr
cp -rf apr-util-1.5.3httpd-2.4.9/srclib/apr-util
cd httpd-2.4.9/
./configure--prefix=/root/server/httpd-2.4.9 --with-included-apr--with-apr=/root/server/lib/apr/apr-1.5.1--with-apr-util=/root/server/lib/apr/apr-util-1.5.3--with-pcre=/root/server/lib/pcre/pcre-8.35-with-z=/root/server/lib/zlib/zlib-1.2.8 --enable-so --enable-moles=all--enable-mods-shared=all --enable-deflate --enable-headers
make
make install
tar zxvftomcat-connectors-1.2.40-src.tar.gz
cd tomcat-connectors-1.2.40-src/
cd native/
./buildconf.sh
./configure--with-apxs=/root/server/httpd-2.4.9/bin/apxs
make
make install
我安装的2.4.9没有什么问题,主要是安装Apache的时候 configure的依赖关系要选择正确。
② Linux 编译 httpd 时老是报 apr-util not found 但我已经装了
./configure --with-apr-util=/usr/local/apr-util/
③ linux apache编译出错误
你的 apache源码包可能不完整, APR not found ,APR是apache的底层支持库,用于支持不同的操作系统的apache 检测到你的CPU是 i686 ,操作系统是linux,所以你要找一个根这个兼容的apache的支持库
④ Linux编译安装apache httpd2.4 make报错
缺少pcre-8.41.tar.gz包,找一个pcre和你httpd对应得版本安装
./configure --prefix=/usr/local/pcre
make && make install
安装好了之后,加上参数--with-pcre=/usr/local/pcre 如下所示
./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre
⑤ red hat linux5 编译安装apache出错了
./configure 后不要加参数也可以啊 默认的路径是/usr/local/apache2 ,具体的 你可以通过./configure --help查看下,我觉得--enable-so有问题