On 28/12/2007, Alex Moen <[EMAIL PROTECTED]> wrote:
> Here's what locate tells me:
>
> [EMAIL PROTECTED] sourcecode]# locate SNMP.pm
> /usr/lib/perl5/5.8.5/i386-linux-thread-multi/SNMP.pm
> /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/SNMP.pm
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/SNMP.pm

All three of those are on the search path you listed,
so should be being picked up.


> /usr/lib/perl5/5.8.5/i386-linux-thread-multi/SNMP/SNMP.pm
> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/SNMP.pm

Those two locations wouldn't be found.

> /usr/lib/perl5/site_perl/5.8.5/Mon/SNMP.pm
> /usr/lib/perl5/site_perl/5.8.5/Net/SNMP.pm

Those two are part of different perl modules
(Jim Trocki's "mon" trap handler, and David Town's
"Net::SNMP" module respectively).

If you are using the SNMP::Session interface,
then they're not relevant here.


> /usr/local/source/SNMP-5.0401/SNMP.pm
> /usr/local/source/net-snmp-5.4.1/perl/SNMP/SNMP.pm
> /usr/local/source/mon-client-1.2.0/Mon/SNMP.pm
> /usr/local/source/mon-client-1.2.0/blib/lib/Mon/SNMP.pm

Those are all part of the original source builds, so again
are not relevant.



> Now, 3 questions:
> 1. Should I uninstall (-e) the Net::SNMP stuff I have already installed before
> compiling and installing Net-SNMP?
> 2. Any particular version of Net-SNMP suggested?
> 2. Will this affect MRTG?

I'd second Mike's answers here.
The presence/absence of the Net::SNMP module is irrelevant.

What I would be tempted to do is to remove *all* of the various
Net-SNMP-based perl modules (see the files under
/usr/local/source/net-snmp-5.4.1/perl for a list of what this
contains), and start again from scratch.

As Mike says, you *must* use the perl code that matches
the C library that you have installed.   Mixing versions is
likely to cause problems, and that may well be what's
hitting you at the moment.
   Get rid of all the previous attempts, and try again with
your source code build.


Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to