Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Can you provide instuctions on how to install ab on a fedora distro with or without installing the apache web server? With yum or compiling from source.

share|improve this question
add comment

3 Answers

up vote 16 down vote accepted

Install apr-util(need to run ab):

yum install apr-util

Install yum-utils:

yum install yum-utils

Download httpd an extract ab:

mkdir ~/httpd
cd ~/httpd
yumdownloader httpd
rpm2cpio httpd-2.2.3-43.el5.centos.3.i386.rpm | cpio -idmv
mv usr/bin/ab /usr/bin/ab
cd ~
rm -rf ~/httpd

Run ab:

ab http://google.ru/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
share|improve this answer
add comment

On my CentOS 6.2, this worked:

sudo yum install httpd-tools
share|improve this answer
    
Worked on my Fedora 17 as well! Thanks! :-) –  John Nov 3 '12 at 16:08
    
Works on CentOS 6 –  MrROY Apr 24 at 5:43
add comment

This should help you. It depends upon on Apache Portable Runtime library and APR-util library

http://code.google.com/p/apachebench-standalone/wiki/HowToBuild

share|improve this answer
    
I actually tried that before I posted the answer, but hasn't been updated and it's not compatible with late versions of APR - No matter what, I couldn't get it to compile. –  arnorhs Feb 28 '11 at 11:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.