473,405 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

error while using the date::calc module

10
hi!

i got the following error while using the Date::Calc module in perl.
plz help me..

the file is ex.pl
contains code like this:
Expand|Select|Wrap|Line Numbers
  1. use strict;
  2. use  Date::Calc();
  3. print "hello";
  4.  

Can't locate Corp.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at ex.pl line 2.

thank u,
manogna.
Feb 6 '08 #1
5 2807
KevinADC
4,059 Expert 2GB
hi!

i got the following error while using the Date::Calc module in perl.
plz help me..

the file is ex.pl
contains code like this:
Expand|Select|Wrap|Line Numbers
  1. use strict;
  2. use  Date::Calc();
  3. print "hello";
  4.  

Can't locate Corp.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at ex.pl line 2.

thank u,
manogna.

I'm assuming Corp.pm is a module that Date::Calc needs that is not installed in any of the folders your perl install uses to find modules. If Corp.pm is not used by Date::Calc then the error makes no sense because you are not trying to call any other modules in the code you posted. On a side note, that is a very very old version of perl you are using: 5.005. 10 years old maybe. Consider upgrading to 5.8.8 or 5.10 if possible.
Feb 6 '08 #2
Manogna
10
I'm assuming Corp.pm is a module that Date::Calc needs that is not installed in any of the folders your perl install uses to find modules. If Corp.pm is not used by Date::Calc then the error makes no sense because you are not trying to call any other modules in the code you posted. On a side note, that is a very very old version of perl you are using: 5.005. 10 years old maybe. Consider upgrading to 5.8.8 or 5.10 if possible.


hi!

thank u for ur reply!

if i use the use ::DBI also it is getting the following error...like this..
i did not understood why it is comming like that...

the code in ex.pl is:

Expand|Select|Wrap|Line Numbers
  1.  use DBI;
  2.  print "hello";
  3.  


Can't locate DBI.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at ex.pl line 1.
BEGIN failed--compilation aborted at ex.pl line 1.



please suggest me to rectify the error.


thank u ,

Manogna.
Feb 6 '08 #3
Doesn't look like you have either of those modules loaded. Not sure if you are running on your on workstation or a remote server (looks to be a remote server), and that would mean you may not be able to upgrade your perl version, as previously suggested.

If you are learning Perl, and just starting out, I'd advise loading Perl onto your workstation. There are versions for most systems, including Windows (ActiveState), and Linux. On the windows version from ActiveState, Perl v5.8 comes with a graphical ppm module that gives you a nice way to manage perl packages. You can issue the ppm query command to see what modules are loaded from most versions too, if ppm is loaded. On a Linux box your native package manager would be similar.

If you don't have a system to use or manage, then it would be best to contact the system administrator of the system you are using to inquire about the versions and modules that are loaded. There might be specific rules about your access and ability to use Perl on a system with managed accounts.

Cheers
Feb 6 '08 #4
numberwhun
3,509 Expert Mod 2GB
hi!

thank u for ur reply!

if i use the use ::DBI also it is getting the following error...like this..
i did not understood why it is comming like that...

the code in ex.pl is:

Expand|Select|Wrap|Line Numbers
  1.  use DBI;
  2.  print "hello";
  3.  
Can't locate DBI.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at ex.pl line 1.
BEGIN failed--compilation aborted at ex.pl line 1.



please suggest me to rectify the error.


thank u ,

Manogna.
Manogna,

Before you can use a Perl module, you must first install it. Modules aren't installed by default, at least not all of them. Perl does come with its own base set of modules.

I think you should first read up on how to install Perl modules. that will give you an idea of what to do.

Regards,

Jeff
Feb 6 '08 #5
Manogna
10
thank u very much!


for all of u!

i installed the modules in my machine and i got the respective functions for manipulate the data..



thanks and regards,

Manogna..................
Feb 8 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Bob | last post by:
Declaring a module level form object in multiple froms within a project to show another project form causes a stack overflow and other assorted errors. Can anyone help?
0
by: Neal | last post by:
Hi I am trying to use a 3rd party DLL in my app, (WebService and/or WebApp) I set the references to it, use its public functions and properties OK in Dev mode but when I run it, i get the...
0
by: jacobryce | last post by:
I'm using Visual Studio 2005 v 2.0 ( 2.0.50727 ) and I'm trying to add a third-party .dll to the toolbox with the Choose Toolbox Items menu item. When I browsed to the .dll, I received the...
3
by: Chris_147 | last post by:
but it seems to depend on from where I start the Python shell. so I've got a module selfservicelabels.py with some variables defined, like this: BtnSave = "link=label.save"...
5
by: johnny | last post by:
I am getting the following errors: File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 679, in _send_output self.send(msg) File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 646, in...
2
by: Dianne | last post by:
Setting up a form in Access 2003 where I'm trying to automatically calculate an RSVP date which is 6 days prior to an actual date (ie: November 10th minus 6 days should give me an answer of November...
2
by: WestAussie | last post by:
Hello This is my first attempt at using VB .NET, and I'm having some trouble identifying the correct means by which to access a form using a procedure stored within a module. I've been using VBA...
0
by: John [H2O] | last post by:
Hello, I have a module created from a Fortran file to read in unformatted binary fortran output. It works fine for some datasets, but crashes with others. The strange thing is it will loop...
0
by: John [H2O] | last post by:
There's a lot of greek for me here ... should I post to numpy-discussions as well??? The backtrace is at the bottom.... Thanks! GNU gdb Fedora (6.8-21.fc9) Copyright (C) 2008 Free...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.