http://www.perlmonks.org?node_id=993357


in reply to Installing SNMP in Strawberry Perl

PPM packages for that module, and its dependencies, are available from the bribes repo.

For a ppm install, I think you just need to:
ppm repo add bribes ppm install http://www.bribes.org/perl/ppm/Net-SNMP.ppd
I'm assuming that your Strawberry Perl has a functional ppm utility - which I think is the case for the 5.16 builds, at least.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Installing SNMP in Strawberry Perl
by joe_tseng (Novice) on Sep 13, 2012 at 11:31 UTC

    I downloaded the PPD file from the URL you provided and I also downloaded an archive the PPD was looking for (the Strawberry Perl PPM doesn't seem to like using repos), and I got it installed.

    However I still got the same message saying the Net-SNMP library can't be found.

    FYI the results of the install are as follows:

    G:\perl>ppm install G:\downloads\Net-SNMP.ppd
    Installing package 'G:\downloads\Net-SNMP.ppd'...
    Use of chdir('') or chdir(undef) as chdir() is deprecated at G:/perl/perl/vendor/lib/PPM.pm line 393.
    Installing G:\perl\perl\site\lib\Net\SNMP.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\Dispatcher.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\Message.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\MessageProcessing.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\PDU.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\Security.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\Transport.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\Security\Community.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\Security\USM.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\Transport\IPv4.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\Transport\IPv6.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\Transport\IPv4\TCP.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\Transport\IPv4\UDP.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\Transport\IPv6\TCP.pm
    Installing G:\perl\perl\site\lib\Net\SNMP\Transport\IPv6\UDP.pm
    Installing G:\perl\perl\bin\snmpkey
    Installing G:\perl\perl\bin\snmpkey.bat
    

    PS - I also had to download Net-SNMP-v6.0.1-PPM516.tar.gz

      After some more googling I don't think I can use portable Strawberry Perl for what I want to do. None of the other modules supports SNMPv3 (which is a requirement for me), and the one that does has external dependencies that I can't put on my flash key. I'm stuck sharing space on a RHEL server. Oh well.