I am trying to install the geoip extension via SSH on my gentoo server. I did:
emerge Geo-IP
: OK
pecl install geoip
: OK
geoiplookup www.bbc.co.uk
: gives me GeoIP Country Edition: GB, UK GeoIP City Edition, Rev 1: GB, N7, Tadworth, (null), 51.283298, -0.233300, 0, 0 GeoIP City Edition, Rev 0: GB, N7, Tadworth, (null ), 51.283298, -0.233300
This seems to be good! Now I'm trying to add this as a php extension: I added
extension = / usr / local / php5 / library / php / extensions / geoip.so
in php.ini
and rehabilitated apache with
/etc/init.d/apache restart
BUT my phpinfo () does not contain any geographic information library and
Gives me an error: calling the undefined function geoip_record_by_name ()
Can someone help me install geoip in gentoo?
thank