Howto Install geoip apxs httpd-devel on Redhat RHEL machine.
You’ll need to run the following commands:
# sudo yum install httpd-devel && sudo yum install geoip-devel
# sudo /usr/sbin/apxs -i -a -L/usr/local/lib -I/usr/local/include -lGeoIP -c mod_geoip.c
The next step is to modify the httpd.conf per geoip’s instructions and upload your .dat file.
However, if your goal is to simply install mod_geoip, it might be worthwhile to consider installing it from the EPEL yum repository. http://download.fedora.redhat.com/pub/epel/5/x86_64/repoview/mod_geoip.html We would add this repository to yum, then install using: ‘yum install mod_geoip’