Installing APR - Apache Portable Runtime for tomcat

You may notice after installing tomcat 6 an error message appears about APR not having been installed. APR provides extra memory status information and promises performance enhancements. Here's how I installed it:

wget http://mirror.cc.columbia.edu/pub/software/apache/apr/binaries/rpm/i386/apr-1.2.8-1.i386.rpm
rpm -ivh apr-1.2.8-1.i386.rpm
wget http://mirror.cc.columbia.edu/pub/software/apache/apr/binaries/rpm/i386/apr-devel-1.2.8-1.i386.rpm
rpm -ivh apr-devel-1.2.8-1.i386.rpm

follow the instructions in : http://www.jroller.com/agileanswers/date/20070129

If you have problems with the configure, the path to apr-1-config may be different. Try this one instead, or use the find command to find it.

./configure --with-apr=/usr/bin/apr-1-config && make

** don't forget to follow all of the agileanswers blog instructions, especially the make install part ;-) **

edit /usr/local/tomcat/bin/setenv.sh and add the following switch:
-Djava.library.path=/usr/local/apr/lib

Restart tomcat.