Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: MakeMaker, testing, and packages with modules

by tachyon (Chancellor)
on Sep 06, 2004 at 02:02 UTC ( [id://388701]=note: print w/replies, xml ) Need Help??


in reply to MakeMaker, testing, and packages with modules

A broken module install that your module depends on means it aint gonna work until that is fixed so the test results are exactly what you want. To get it to insist that you have Net::SNMP 5.1+ then just add this to your Makefile.PL and it will choke on the Makefile.PL unless Net::SNMP 5.1 is installed.

WriteMakefile( 'NAME' => 'MyApp::EachMod', ..... 'PREREQ_PM' => { Net::SNMP => 5.1 }, ..... );

cheers

tachyon

Replies are listed 'Best First'.
Re^2: MakeMaker, testing, and packages with modules
by Rhys (Pilgrim) on Sep 06, 2004 at 02:34 UTC
    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. :-)

    --J

    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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://388701]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-19 07:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found