AWStats を久しぶりに導入したら、IPv6のアクセスログ部分でエラーになった。
エラー
Error: Plugin load for plugin 'ipv6' failed with return code: Error: Can't locate Net/IP.pm in @INC (you may need to install the Net::IP module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /usr/local/awstats/wwwroot/cgi-bin/lib /usr/local/awstats/wwwroot/cgi-bin/plugins) at (eval 2) line 1.
モジュールが足りていないよ!
と表示されたので、入れてあげる。
shell
perl -MCPAN -e shell
cpan[1]> install Net::IP
cpan[2]> install Net::DNS
cpan[3]> quit