Sunday, June 14, 2009

Installing and Configuring apache flood on CentOS

I have often found that installing flood on 64 bit machine with CentOS fails.

you can follow these simple steps to install flood on your system

Download flood from

svn co http://svn.apache.org/repos/asf/httpd/flood/trunk flood

or

Browse to http://www.apache.org/dyn/closer.cgi/httpd/flood/ and download from a mirror

If you want to install on remote machine you can also

wget http://apache.mirror.facebook.net//httpd/flood/flood-0.4.tar.gz

untar the compressed file where it is downloaded on your system by issuing the following command

[root@myserver] tar zxf flood-0.4.tar.gz

dowload apr-1, and apr-1-util from http://apr.apache.org/download.cgi

wget http://apache.opensourceresources.org/apr/apr-1.3.5.tar.gz
wget http://apache.opensourceresources.org/apr/apr-util-1.3.7.tar.gz

untar both apr files as it was done for flood

[root@myserver] cd apr-1.3.5
[root@myserver] ./configure
[root@myserver] ./make
[root@myserver] ./make install

and now for apr-1-util

[root@myserver] cd ../apr-util-1.3.7
[root@myserver] ./configure
[root@myserver] ./make
[root@myserver] ./make install

after installing both apr and apr-util flood can be compiled and installed; flood is built on top of these utilities.

[root@myserver] cd ../flood-0.4
[root@myserver] ./configure --with-apr=/usr/local/src/apr-1.3.5/apr-1-config --with-apr-util=/usr/local/src/apr-util-1.3.7/apu-1-config
[root@myserver] ./make
[root@myserver] ./make install

Optionally you may have to get a shell script from http://linux.derkeiler.com/Newsgroups/linux.redhat/2005-03/0373.html if at the time of configuring you get errors like x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized


Happy Flooding!!!

Friday, June 05, 2009

tail: cannot open `+1' for reading

$ export _POSIX2_VERSION=199209

This will fix the problem