Sumit Madan wrote:
> Done. But the issue remains:
> 
> ##
> 2008-07-15 10:45:01 -- Can't locate IO/Socket/INET6.pm in @INC (@INC
> contains: /usr/bin/../lib/mrtg2 /usr/bin /etc/perl
> /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
> /usr/local/lib/site_perl .) at /usr/share/perl5/SNMP_Session.pm line 138.
> ##

Ok, I've looked at that code and you should NOT get that error message.
The issue is NOT even triggered by mrtg, it is triggered by the
SNMP_Session.pm code, and it should not be. It is essentially the following,

if (eval {require Socket6;} &&
    eval {require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {
        printf( "YOU HAVE IPV6\n" );
}
else {
        printf( "NO IPV6\n" );
}


I'm curious, does mrtg still run in spite of these errors? It seems you
are getting errors from within the eval{} and you should not be. What
the SNMP_Session is doing is trying to evaluate IF you have the Socket6
AND the IO::Socket::INET6 available.

Anyway, please save the above snippet to some file, like /tmp/test.pl
and then run it as `perl /tmp/test.pl`. Do you get an error from that?

- Adam



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to