François - 2016-04-14

I was hit by the same issue. The error occurs because "country_code_by_addr_v6" is available only when Geo::IP Perl module is using C API, not pure Perl. This solution worked for me:

Operating System: Ubuntu 14.04

A) Install GeoIP C library

Source of instructions: https://github.com/maxmind/geoip-api-c

sudo add-apt-repository ppa:maxmind/ppa
sudo aptitude update
sudo aptitude install libgeoip1 libgeoip-dev geoip-bin

B) Install Geo::IP Perl module from source

Source of instructions: https://github.com/maxmind/geoip-api-perl/blob/master/INSTALL

Download latest release from GitHub (version 1.45) and execute:

perl Makefile.PL
make
make test
make install

I realized later that Step A may not be required. You may want to try B only.

 

Last edit: François 2016-04-14