Hi experts, I try to install the geoip extension through 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, United Kingdom 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
Seems fine ! Now I try to add this as php extension: I added
extension=/usr/local/php5/lib/php/extensions/geoip.so
to php.ini
and restatred apache with
/etc/init.d/apache restart
BUT my phpinfo() does not contain any geoip library and
Gives me error: Call to undefined function geoip_record_by_name()
Can someone help me to install geoip on gentoo ?
Thanks