| 1 |
To install the GeoIP C library, go to |
| 2 |
http://www.maxmind.com/app/c |
| 3 |
|
| 4 |
Geo::IP 1.37 requires GeoIP CAPI 1.4.5 or higher |
| 5 |
Note that Geo::IP 1.36 requires GeoIP C 1.4.5 or higher |
| 6 |
|
| 7 |
To install the Perl XS wrapper, run |
| 8 |
|
| 9 |
perl Makefile.PL |
| 10 |
make |
| 11 |
make test |
| 12 |
make install |
| 13 |
|
| 14 |
To install the PurePerl code (no C API required), run |
| 15 |
|
| 16 |
perl Makefile.PL PP=1 |
| 17 |
make |
| 18 |
make test |
| 19 |
make install |
| 20 |
|
| 21 |
(If you get a "libGeoIP.so.1: cannot open shared object No such file or |
| 22 |
directory" error, add /usr/local/lib to /etc/ld.so.conf then run |
| 23 |
/sbin/ldconfig /etc/ld.so.conf ) |