I've setup awStats to scan IIS log for 8 years and use GeoIP plugin without problem.
Recently I upgraded to 7.4 and noticed there's a new plugin: GeoIP6. When I enabled GeoIP6 plugin (and disabled GeoIP) in conf file, I got the error:
Can't locate object method "country_code_by_addr_v6" via package "Geo::IP" at D:\AWStats\wwwroot\cgi-bin/plugins/geoip6.pm line 113, <LOG> line 2.
Please tell me how to fix the problem, thank you.
Version Info:
Windows Server: 2003 SP2
awStats: 7.4
ActivePerl: 5.20.2002
Geo-IP: 1.45
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
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:
I realized later that Step A may not be required. You may want to try B only.
Last edit: François 2016-04-14