Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RE: ActivePerl 5.10 - Cannot locate module in @INC

99 views
Skip to first unread message

James...@barclayswealth.com

unread,
May 18, 2009, 11:43:43 AM5/18/09
to

-----Original Message-----
From: Mike Ayers [mailto:mike_...@tvworks.com]
Sent: 15 May 2009 19:20
To: Brown, James : Barclays Wealth; net-snm...@lists.sourceforge.net
Subject: RE: ActivePerl 5.10 - Cannot locate module in @INC

> From: James...@barclayswealth.com
> [mailto:James...@barclayswealth.com]
> 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.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Dave Shield

unread,
May 18, 2009, 12:00:11 PM5/18/09
to
2009/5/18 <James...@barclayswealth.com>:

> 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

Alex Burger

unread,
May 18, 2009, 10:11:49 PM5/18/09
to
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

James...@barclayswealth.com 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/

------------------------------------------------------------------------------

James...@barclayswealth.com

unread,
May 19, 2009, 6:58:31 AM5/19/09
to

-----Original Message-----
From: Alex Burger [mailto:ale...@users.sourceforge.net]
Sent: 19 May 2009 02:39
To: Brown, James : Barclays Wealth

Cc: mike_...@tvworks.com; net-snm...@lists.sourceforge.net
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.

------------------------------------------------------------------------------

0 new messages