The directions at http://www.net-snmp.org/docs/perl-SNMP-README.html
should tell you how to go about getting that module installed. Keep in
mind though that those directions are on how to build the module from
the source. In your case you don't really care if you have the latest
version just one that works, so pulling the module from CPAN should be
a good option for you. With that in mind from a command line you could
just run

cpan SNMP

To install the module from cpan. Strawberry Perl also comes with
another CPAN  tool called cpanplus(this one sometimes works better
than the other) which you could install the module with by doing a

cpanp install SNMP

Once you run one of these commands your system will connect to a CPAN
server, download the module, build it, test it, and install it for
you. After that it should be in place to use.

Best of luck

-- 
Brandon Wigfield
CONXX, Inc.
www.conxx.net


On Mon, Feb 7, 2011 at 3:53 PM, Francois Bouchard
<[email protected]> wrote:
> Hi,
> I'm trying to use the script makehtml, but it seems I've some module
> uninstalled.
>
> C:\net-snmp-5.6.1\mibs>perl makehtml.pl AGENTX-MIB.txt > m.html
> Can't locate SNMP.pm in @INC (@INC contains: C:/strawberry/perl/lib
> C:/strawberry/perl/site/lib .) at makehtml.pl line 3.
> BEGIN failed--compilation aborted at makehtml.pl line 3.
>
> How do I add a path to the pm files located in the net-snmp-5.6.1 root
> folder.
>
> regards,
> Francois
>
>>
>> I at least get an error.
>>
>> C:\net-snmp-5.6.1\mibs>perl makehtml.pl -W AGENTX-MIB.txt > outfile.html
>> 'MIBS' is not recognized as an internal or external command,
>> operable program or batch file.
>> 'mv' is not recognized as an internal or external command,
>> operable program or batch file.
>>
>> That first error about MIBS is comming from line 106
>>
>>   system("MIBS=$mib mib2c -c mib2c.genhtml.conf $node");
>>
>> Whats going on here is that the script is assuming that its being run
>> from a unix environment where we can set an environment variable can
>> be set in that way from the command line. If we were to change that
>> line to:
>>
>>   $ENV{MIBS} = $mib;
>>   system("mib2c -c mib2c.genhtml.conf $node");
>>
>> we can have perl set the environment variable for us and then it will
>> work on unix and windows.
>>
>>
>> The next error "'mv' is not recognized as an internal or external
>> command" is also caused by the script assuming we're on a unix box.
>>
>> The usage for the makehtml.pl script is
>>
>> usage: makehtml.pl -W [-M MIBDIR] [-D OUTDIR] files > index.html
>>
>> but since you aren't using the -D option the easiest way to fix that
>> error for you would be to just comment out that line. Your html file
>> will then just be output in the current directory.
>>
>> The file you get with the "> outfile.html" part of the command is
>> actually a listing of mibs like we see at
>>   http://www.net-snmp.org/docs/mibs/
>> the part you're interested in is like what we get at
>>   http://www.net-snmp.org/docs/mibs/agentxMIB.html
>>
>> which will get a file generated based on the name of the MIB.
>>
>> If you not getting any output at all though you may be having some
>> other issue, but the info about should get this script running on
>> windows. (works for me anyways)
>>
>> Hope that helps,
>>
>> --
>> Brandon Wigfield
>> CONXX, Inc.
>> www.conxx.net
>>
>>
>>
>> On Fri, Feb 4, 2011 at 4:46 PM, Simon Chamlian <[email protected]>
>> wrote:
>>>
>>>
>>>
>>> I installed strawberryperl.
>>>
>>> I tried:
>>>
>>> D:\public\net-snmp-5.6.1\perl>perl makehtml.pl -W mpbcRMH-MIB.mib >
>>> m.html
>>>
>>> No errors but creates a 'm.html' with size 0?!?
>>>
>>> Any hints?
>>>
>>> Thanks,
>>> S.
>>>
>>>
>>>
>>>
>>>
>>> ----- Original Message -----
>>> From: Brandon Wigfield
>>> To: Dave Shield
>>> Cc: Simon Chamlian ; [email protected]
>>> Sent: Friday, February 04, 2011 11:41 AM
>>> Subject: Re: MIB converter
>>>
>>> On Fri, Feb 4, 2011 at 11:19 AM, Dave Shield <[email protected]>
>>> wrote:
>>>>
>>>> On 4 February 2011 16:04, Simon Chamlian <[email protected]> wrote:
>>>> > Being new with PERL, what do I need to run it under WindowsXP.
>>>>
>>>> perl :-)
>>>> (Probably ActivePerl for windows)
>>>>
>>>> And the Net-SNMP perl modules
>>>> (which are part of the source distribution)
>>>>
>>>> See README.win32 for details.
>>>>
>>>> Dave
>>>>
>>>
>>> These days all the cool kids in the perl community are running strawberry
>>> perl on windows. It tends to play nicer with cpan.
>>> http://strawberryperl.com/
>>> --Brandon Wigfield
>>>
>>
>
>

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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

Reply via email to