apache ab的安装步骤

1:到apache官方网站http://httpd.apache.org/download.cgi#apache24下载最新版本的apache,而后解压,执行以下命令:php

./configure –prefix=/root/soft/apachelinux

提示:c++

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

 

2.apr not found问题:工具

提示缺乏apr,下载http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz ,下载后解压,编译安装apr工具,执行以下命令:网站

./configure -prefix=/root/soft/aprui

make spa

make install.net

 

继续编译apche,执行以下命令:get

./configure -prefix=/root/soft/apache -with-apr=/root/soft/apr

提示:

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

 

3.Apr-util not found问题:缺乏apr-util,下载http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz ,下载后解压,编译apr-util,执行以下命令:

./configure -prefix=/root/soft/apr-util -with-apr=/root/soft/apr

make

make install

 

继续编译apche,执行以下命令:

./configure -prefix=/root/soft/apache -with-apr=/root/soft/apr -with-apr-util=/root/soft/apr-util

提示:

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

 

4.pcre问题:

下载:http://sourceforge.net/projects/pcre/files/pcre/,解压后开始编译并安装,执行以下命令:

./configure -prefix=/root/soft/pcre

----------------------若是已经有gcc以及g++环境的,能够省略看这一步

说明:在编译pcre的时候,须要你的linux安装gcc以及g++环境,不然提示错误;我在安装的时候提示没有安装g++,因为个人gcc版本是4.4.5-6的

,所以我下载可一样版本的下面3个软件包:

gcc-c++-4.4.5-6.el6.x86_64.rpm

libstdc++-4.4.5-6.el6.x86_64.rpm

libstdc++-devel-4.4.5-6.el6.x86_64.rpm

-------------------------------------------------------------------------------------------

make

make install

 

5.继续配置安装apche ab

./configure -prefix=/root/soft/apache -with-apr=/root/soft/apr -with-apr-util=/root/soft/apr-util -with-pcre=/root/aoft/pcre

make

make install

相关文章
相关标签/搜索