|
From: <Jam...@ba...> - 2009-05-15 15:04:52
|
All, I'm using ActivePerl 5.10 (Win32) and attempted to install Net::SNMP using the PPM that ships with net-snmp5.4.2.1-1.win32.exe. I had to change the <architecture> tag as described in the Wiki, but after doing that, the install proceeded fine and I can see files under c:/Perl/site/lib/NetSNMP/agent/. The problem occurs when I do a "use Net::SNMP". Perl comes back with "Can't locate Net/SNMP.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .)...". Could anyone suggest how I could resolve this please? Many thanks James. Barclays Wealth is the wealth management division of Barclays Bank PLC. This email may relate to or be sent from other members of the Barclays Group. The availability of products and services may be limited by the applicable laws and regulations in certain jurisdictions. The Barclays Group does not normally accept or offer business instructions via internet email. Any action that you might take upon this message might be at your own risk. This email and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this email in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this email or its attachments. Internet communications are not guaranteed to be secure or without viruses. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this email may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this email or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC. Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. |
|
From: Mike A. <mik...@tv...> - 2009-05-15 18:20:30
|
> From: Jam...@ba... > [mailto:Jam...@ba...] > Sent: Friday, May 15, 2009 7:37 AM > The problem occurs when I do a "use Net::SNMP". Perl comes > back with "Can't locate Net/SNMP.pm in @INC (@INC contains: > C:/Perl/site/lib C:/Perl/lib .)...". > > Could anyone suggest how I could resolve this please? Use the right package. http://www.net-snmp.org/wiki/index.php/Which_Perl_module_should_I_use HTH, Mike |
|
From: <Jam...@ba...> - 2009-05-18 15:32:07
|
-----Original Message----- From: Mike Ayers [mailto:mik...@tv...] Sent: 15 May 2009 19:20 To: Brown, James : Barclays Wealth; net...@li... Subject: RE: ActivePerl 5.10 - Cannot locate module in @INC > From: Jam...@ba... > [mailto:Jam...@ba...] > Sent: Friday, May 15, 2009 7:37 AM > The problem occurs when I do a "use Net::SNMP". Perl comes back with > "Can't locate Net/SNMP.pm in @INC (@INC contains: > C:/Perl/site/lib C:/Perl/lib .)...". > > Could anyone suggest how I could resolve this please? > > Use the right package. > > http://www.net-snmp.org/wiki/index.php/Which_Perl_module_should_I_use > > > HTH, > > Mike Mike, Thanks very much for sending me the article, but I'm still confused. I installed the PPM supplied through the net-snmp.org zip. Is this the Pure Perl or the C implementation? I realise the article also refers to SNMP::Info, but a "use SNMP::Info" turns up the not found in @INC problem. If I list the contents of NetSNMP, these are the files that have been installed via PPM: C:\Perl\site\lib\NetSNMP>dir [...] 15/05/2009 15:21 <DIR> . 15/05/2009 15:21 <DIR> .. 15/05/2009 15:21 <DIR> agent 15/05/2009 15:21 13,232 agent.pm 15/05/2009 15:21 2,878 ASN.pm 15/05/2009 15:21 12,139 default_store.pm 15/05/2009 15:21 5,345 OID.pm 15/05/2009 15:21 7,336 TrapReceiver.pm Perhaps this module doesn't work very well with Activestate v5.10? I notice that it's not available in the usual location: http://ppm.activestate.com/PPMPackages/zips/10xx-builds-only/Windows/ The executables themselves (snmpget.exe/snmpwalk.exe) are working fine though, so I'm starting to wonder whether the best method might be to use backticks to drive the exectable and parse the output. Regards James. Barclays Wealth is the wealth management division of Barclays Bank PLC. This email may relate to or be sent from other members of the Barclays Group. The availability of products and services may be limited by the applicable laws and regulations in certain jurisdictions. The Barclays Group does not normally accept or offer business instructions via internet email. Any action that you might take upon this message might be at your own risk. This email and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this email in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this email or its attachments. Internet communications are not guaranteed to be secure or without viruses. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this email may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this email or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC. Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. |
|
From: Dave S. <D.T...@li...> - 2009-05-18 15:54:40
|
2009/5/18 <Jam...@ba...>: > I installed the PPM supplied through the net-snmp.org zip. Is this the Pure Perl or the C implementation? Anythign obtained from the net-snmp.org website will be the C-based perl module. It's essentially a perl-based wrapper round the Net-SNMP (C) libraries. You'd use it by specifying use SNMP; *not* use Net::SNMP; The package Net::SNMP is not related to the Net-SNMP project at all (apart from covering the same subject area). That's the pure-perl module, maintained by David Town. Dave |
|
From: Alex B. <al...@us...> - 2009-05-19 02:05:49
|
Net-SNMP 5.4.2.1 for Windows was compiled with Activestate Perl v5.8. 5.5 will be compiled using v5.10. There's a binary for 5.5.pre2 available on the SF site that uses 5.10: http://sourceforge.net/project/showfiles.php?group_id=12694&package_id=11571&release_id=672929 I have never tried using a module compiled under Perl 5.8 with Perl 5.10 but I wouldn't be surprised if it didn't work. If it does, please let me know. Alex Jam...@ba... wrote: > Perhaps this module doesn't work very well with Activestate v5.10? I notice that it's not available in the usual location: http://ppm.activestate.com/PPMPackages/zips/10xx-builds-only/Windows/ |
|
From: <Jam...@ba...> - 2009-05-19 10:48:50
|
-----Original Message----- From: Alex Burger [mailto:al...@us...] Sent: 19 May 2009 02:39 To: Brown, James : Barclays Wealth Cc: mik...@tv...; net...@li... Subject: Re: ActivePerl 5.10 - Cannot locate module in @INC > Net-SNMP 5.4.2.1 for Windows was compiled with Activestate Perl v5.8. > 5.5 will be compiled using v5.10. There's a binary for 5.5.pre2 available on the SF site that uses 5.10: > > http://sourceforge.net/project/showfiles.php?group_id=12694&package_id=11571&release_id=672929 > > I have never tried using a module compiled under Perl 5.8 with Perl 5.10 but I wouldn't be surprised if it didn't work. If it does, please let me know. > Alex Mike/Alex, Thanks very much for your help so far. Just to let you know, a "use SNMP;" with ActivePerl 5.10 and Net-SNMP 5.4.2.1 returns... Can't load 'C:/Perl/site/lib/auto/NetSNMP/default_store/default_store.dll' for module NetSNMP::default_store: load_file:The specified module could not be found at C:/Perl/lib/DynaLoader.pm line 202. at C:/Perl/site/lib/SNMP.pm line 16 The dll is present at the stated location, but for some reason doesn't work. It's not a dll registration issue as that dll doesn't appear to be registerable. I've downloaded the binary for 5.5-pre2 and installed using PPM. Unfortunately, I get the same error. I'm using Windows 2003 server and installed to the standard path c:\usr. Regards James. Barclays Wealth is the wealth management division of Barclays Bank PLC. This email may relate to or be sent from other members of the Barclays Group. The availability of products and services may be limited by the applicable laws and regulations in certain jurisdictions. The Barclays Group does not normally accept or offer business instructions via internet email. Any action that you might take upon this message might be at your own risk. This email and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this email in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this email or its attachments. Internet communications are not guaranteed to be secure or without viruses. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this email may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this email or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC. Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. |