Subject: | SNMP does not declare it's prerequisites properly |
SNMP seems to depend on Net::SNMP according to this diagnostic:
if ($Params{'LIBS'} eq "" || $Params{'CCFLAGS'} eq "") {
die "You need to install net-snmp first (I can't find net-snmp-config)";
}
the proper way to handle this is to declare your prerequisites in the PREREQ_PM section
of your Makefile.PL, and not to die. A simple
WriteMakefile(
...
PREREQ_PM => { 'Net::SNMP' => 0 },
...
);
will do the trick.
-- Jos