473,785 Members | 2,363 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error while using the date::calc module

10 New Member
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 2826
KevinADC
4,059 Recognized Expert Specialist
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 New Member
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
iwonder
2 New Member
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 Recognized Expert Moderator Specialist
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 New Member
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
1911
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
1458
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 error "Module not found", on the initial line of instantiation of it. Anybody..?
0
1047
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 following exception: The specified module could not be found. (Exception from HRESULT: 0x8007007E) Note that I was successful in adding the same .dll to the toolbox in VS2005 beta 2. Thanks in advance for the help.
3
1756
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" DeliveryAutomaat = "//input" This module is in the Lib directory. Now when I do import selfservicelabels
5
9535
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 send self.connect() File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 1073, in connect ssl = socket.ssl(sock, self.key_file, self.cert_file)
2
1297
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 4th) Any ideas on the formula I enter?
2
1695
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 in Excel (self taught) where for example I could access a forms textbox using the statement 'frmInput.txtAge.Text'. In my .NET project I have created a form with a textbox but have been unable to access it from a module using the same process....
0
1355
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 through several files before it crashes, then suddently giving me this output: *** glibc detected *** python: munmap_chunk(): invalid pointer: 0xb34ac008 *** ======= Backtrace: =========
0
1822
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 Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10356
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9958
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2890
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.