I'm trying to install PECL extension GeoIP but with no luck.
And then I'm getting this:
I was trying to find some info about this and one thing that I found is that I need to do yum install geoip-devel. But I can't do yum since I'm on shared hosting. Any suggestions? UPDATE I solved my issue. Found way to install libGeoIP
Then I modified configure file inside $HOME/pecl_install/geoip-1.0.8 Added my home path to SEARCH_PATH on line 4141. So now it looks like SEARCH_PATH="/usr/local /usr /sw /opt/local /home/myusername" And then:
Finally it works! asked 12 Jun '13, 04:24 HarrisonHill |
To install geoip-devel manually you would need to download it and compile it from sources:
Then, you would need to edit line 4141 in your Since my username is ilias, I would change the line from Running You would then need to customize your php.ini file to include those using the answered 12 Jun '13, 06:38 iliasr ♦♦ Oops, sorry, didn't see your post before updating my question. I found same solution. Thank you very much for help! :)
(12 Jun '13, 07:09)
HarrisonHill
|
You can get it working without PECL too. http://www.maxmind.com/app/geolitecity
answered 12 Jun '13, 04:57 epqrs Thanks, but my app has already integrated all the functionality. It will take lots of code rewriting to get it working with this. Plus I need orgs and isps as well. Hope there is way to get it working with PECL
(12 Jun '13, 05:02)
HarrisonHill
|
The full scripted commands should be (for PHP 5.6) as follows: Install re2c:
Install GeoIP database:
Install GeoIP PECL Extension:
Hope that helps! answered 23 Jun '15, 02:30 ryans ♦♦ |