# Test for existence of libGeoIP my $found = 0; foreach (split(/\s+/, $Config{libpth})) { if (-f "$_/libGeoIP." . $Config{so}) { $found = 1; last; } }
To install Geo::IP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::IP
CPAN shell
perl -MCPAN -e shell install Geo::IP
For more information on module installation, please visit the detailed CPAN module installation guide.