If you don’t have EPEL installed:

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm

Install the GeoIP package with dependencies:

yum install GeoIP GeoIP-devel GeoIP-data zlib-devel libxml
service httpd restart