Hi Robert,
Thanks for your answer. Actually what I did was the following:
- I've downloaded the package net-snmp-5.2.1.2-1.src.rpm from net-snmp
web page
- I've installed the src rpm with "rpm -i net-snmp-5.2.1.2-1.src.rpm"
- I've updated the net-snmp.spec file with expamles/notification module
as follows:
--with-mib-modules="host disman/event-mib smux
examples/notification"
- I've generated the binaries with "rpm -bb net-snmp.spec"
- I've installed the net-snmp 5.0 with "rpm -e net-snmp net-snmp-devel
net-snmp-libs"
- I've installed the net package with "rpm -i net-snmp*" and it
installed the modules net-snmp-5.2.1.2-1, net-snmp-debuginfo-5.2.1.2-1,
net-snmp-devel-5.2.1.2-1
So it seems that in 5.2.1.2 the net-snmp-utils is part of the other
modules.
When trying to run mib2c I received that error message than, following
the instructions, I've installed the net-snmp-perlmods-5.2.1.2-1
directly from the binary downloaded on the same net-snmp web page
(net-snmp-perlmods-5.2.1.2-1.i686.rpm since I didn't found the rpm
source of this module).
Then I was very surprised to receive the same error message (You don't
have the SNMP perl module installed) when trying to execute mib2c.
Could this be caused by the fact that the binaries generated from the
net-snmp source package have all the extension *i386.rpm versus
net-snmp-perlmods-5.2.1.2-1.i686.rpm ?
And another thing. After the net-snmp-perlmods installation I was
expecting to have some file or directory containing the name mib2c but
what I have is:
> rpm -ql net-snmp-perlmods-5.2.1.2-1
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/NetSNMP/ASN.pm
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/NetSNMP/OID.pm
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/NetSNMP/TrapRec
eiver.pm
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/NetSNMP/agent.p
m
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/NetSNMP/agent/d
efault_store.pm
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/NetSNMP/agent/n
etsnmp_request_infoPtr.pm
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/NetSNMP/default
_store.pm
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/SNMP.pm
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/AS
N/ASN.bs
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/AS
N/ASN.so
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/AS
N/autosplit.ix
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/OI
D/OID.bs
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/OI
D/OID.so
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/OI
D/autosplit.ix
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/Tr
apReceiver/TrapReceiver.bs
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/Tr
apReceiver/TrapReceiver.so
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/Tr
apReceiver/autosplit.ix
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/ag
ent/agent.bs
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/ag
ent/agent.so
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/ag
ent/autosplit.ix
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/ag
ent/default_store/autosplit.ix
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/ag
ent/default_store/default_store.bs
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/ag
ent/default_store/default_store.so
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/de
fault_store/autosplit.ix
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/de
fault_store/default_store.bs
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/de
fault_store/default_store.so
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/SNMP/SNMP.
bs
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/SNMP/SNMP.
so
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/SNMP/autos
plit.ix
/usr/share/man/man3/NetSNMP::ASN.3pm.gz
/usr/share/man/man3/NetSNMP::OID.3pm.gz
/usr/share/man/man3/NetSNMP::TrapReceiver.3pm.gz
/usr/share/man/man3/NetSNMP::agent.3pm.gz
/usr/share/man/man3/NetSNMP::agent::default_store.3pm.gz
/usr/share/man/man3/NetSNMP::default_store.3pm.gz
/usr/share/man/man3/NetSNMP::netsnmp_request_infoPtr.3pm.gz
Thanks,
Eugen
-----Original Message-----
From: Robert Story [mailto:[EMAIL PROTECTED]
Sent: Monday, October 17, 2005 1:12 PM
To: Eugen
Cc: 'Thomas Anders'; 'xuemei'; [email protected]
Subject: Re: Perl versus c agent
On Fri, 14 Oct 2005 18:20:33 -0400 Eugen wrote:
E> I've recently installed the net-snmp (RedHat) and when trying to
execute
E> mib2c I receive the error:
E>
E> ERROR: You don't have the SNMP perl module installed. Please obtain
E> this by getting the latest source release of the net-snmp toolkit
from
E> http://www.net-snmp.org/download/ . Once you download the source and
E> unpack it, the perl module is contained in the perl/SNMP directory.
E> See the README file there for instructions.
E>
E> However the net-snmp rpms installed on my computer are:
E> net-snmp-perlmods-5.2.1.2-1
E> net-snmp-5.2.1.2-1
E> net-snmp-debuginfo-5.2.1.2-1
E> net-snmp-devel-5.2.1.2-1
E>
E> Can you tell me please what's wrong?
Hmm.. that should work. Though I notice that you don't have
net-snmp-utils
installed. Maybe red-hat has the perl modules in there, and
net-snmp-perlmods
is the embedded perl support. I dunno. If the utils lib doesn't help,
try
contacting RedHat support.
Or uninstall the lot, and install our rpm (or build from source), and we
can
go from there.
--
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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