Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: MakeMaker, testing, and packages with modules

by Rhys (Pilgrim)
on Sep 06, 2004 at 02:34 UTC ( #388704=note: print w/replies, xml ) Need Help??

in reply to Re: MakeMaker, testing, and packages with modules
in thread MakeMaker, testing, and packages with modules

Yup. I just finished building the Net-SNMP package v5.1.2 from the src.rpm file on SourceForge. It's a bit tricky upgrading on RedHat, due to dependency issues, so I'm not sure this implementation is ready for a production server, BUT...

Yes, you're right. Once I get this worked out, I need to update the Makefile.PL. Right now, I think it accepts SNMP >= 4.1.2...

WARNING! Do not confuse the Net-SNMP libraries with the Net::SNMP Perl module available on CPAN!

To tell the difference:

use Net::SNMP; # Comes from CPAN. use SNMP; # Comes from Net-SNMP library.

Yeah, it sucks, but at least one can tell the difference. The Net-SNMP module came first, but at the time, the library was called "UCD-SNMP". The name change make sense from the C standpoint, but is unfortunate from a Perl standpoint.

Anyway, the thing built, with a little tweak to the specfile, and installed with --nodeps. A little more work and I'm back to the original problem. :-)


Update: To get the net-snmp-5.1.2-1.src.rpm to build properly and install safely, I had to...

up2date -i beecrypt-devel perl -eshell -MCPAN cpan> install Term::ReadKey cpan> install Tk rpm -ivh net-snmp-5.1.2-1.src.rpm cd /usr/src/redhat/SPECS rpmbuild -ba --clean --target i686 --with perl_modules net-snmp.spec rpm --erase net-snmp-devel net-snmp-utils net-snmp-perl cd /usr/src/redhat/RPMS/i686 rpm --nodeps -Uvh net-snmp-5.1.2-1.i686.rpm rpm -ivh net-snmp-devel-5.1.2-1.i686.rpm rpm -ivh net-snmp-perlmods-5.1.2-1.i686.rpm

So far, Ethereal still works (and decodes SNMP packets properly), and my t/Basic.t no longer fails. Woo hoo!