Comments on Installing mod_geoip For Apache2 On Fedora 9
Installing mod_geoip For Apache2 On Fedora 9 This guide explains how to set up mod_geoip with Apache2 on a Fedora 9 system. mod_geoip looks up the IP address of the client end user. This allows you to redirect or block users based on their country. You can also use this technology for your OpenX (formerly known as OpenAds or phpAdsNew) ad server to allow geo targeting.
1 Comment(s)
Comments
Hi
I am trying to install mod_geoip for apache 2.2.9 on centos 4.7, setup with whm and cpanel.
I first logged in as root user then did the following,
mkdir geoip
wget http://www.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
tar xzfv GeoIP.tar.gz
cd GeoIP*
./configure
make
make check
make install
cd ..
mkdir mod_geoip
cd mod_geoip
wget http://www.maxmind.com/download/geoip/api/mod_geoip/mod_geoip_1.1.1.tar.gz
tar xzfv mod_geoip_1.1.1.tar.gz
cd mod_geoip_1.1.1
apxs -cia -I/usr/local/include -L/usr/local/lib -lGeoIP mod_geoip.c
now at this point i am getting following error
[code]
# apxs -cia -I/usr/local/include -L/usr/local/lib -lGoeIP mod_geoip.c
/bin/sh /usr/lib/apr/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-0 -I/usr/include/httpd -I/usr/local/include -c -o mod_geoip.lo mod_geoip.c && touch mod_geoip.slo
/bin/sh /usr/lib/apr/build/libtool --silent --mode=link gcc -o mod_geoip.la -L/usr/local/lib -lGoeIP -rpath /usr/lib/httpd/modules -module -avoid-version mod_geoip.lo
/usr/bin/ld: cannot find -lGoeIP
collect2: ld returned 1 exit status
[b]apxs:Error: Command failed with rc=65536[/b][/code]
i was wondering if anybody could help with it.
thank you very much