我嘗試在我的gentoo服務器上通過SSH安裝geoip擴展。 我所做的:gentoo geoip installation
emerge Geo-IP
:OK
pecl install geoip
:OK
geoiplookup www.bbc.co.uk
:給我 GeoIP的國家版本:GB,英國 的GeoIP城市版,版本1:GB ,N7,Tadworth,(null),51.283298,-0.233300,0, GeoIP City Edition,Rev 0:GB,N7,Tadworth,(null),51.283298,-0.233300
似乎很好! 現在我嘗試添加爲PHP擴展: 我加
extension=/usr/local/php5/lib/php/extensions/geoip.so
爲php.ini
和restatred阿帕奇與
/etc/init.d/apache restart
但我的phpinfo()函數不包含任何的GeoIP庫和
給我錯誤:Call to und已定義的函數geoip_record_by_name()
有人可以幫我安裝gentoo gentoo嗎?
感謝