Click here to get back home

Date::Calc Problem

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Date::Calc Problem Phillip Lemky 02-09-2006
Get Chitika Premium
Posted by Phillip Lemky on February 9, 2006, 12:25 am
Please log in for more thread options


Hi,

I'm both a Linux and Perl newbie, so please bear with me. I'm working with
Perl on Ubuntu Linux. I want to use the Date::Calc module in a Perl script.
I used the cpan command line to install it. I ran: install Date::Calc (At
least, I think I installed it. I'm not sure how to check if it actually is
installed.) At the beginning of my Perl script, I'm using: use Date::Calc
qw(:all); When I go to run it, I get the following: Can't locate
Date/Calc.pm in @INC. I tried searching for Date/Calc.pm on the file system
and it doesn't look like it's there. Also, after installing a module, do
any environment variables need to be set? Any help would be much
appreciated.

--
Phillip Lemky



Posted by DJ Stunks on February 9, 2006, 11:01 am
Please log in for more thread options


Phillip Lemky wrote:
> Hi,
>
> I ran: install Date::Calc (At least, I think I installed it. I'm not sure
how to check
> if it actually is installed.)

> When I go to run it, I get the following: Can't locate Date/Calc.pm in @INC.

Not installed.

Why don't you try installing it again, but actually watch the output
this time.

-jp


Posted by Phillip Lemky on February 9, 2006, 10:54 pm
Please log in for more thread options


I did watch the output. There were a couple of "NOT OK" messages, but
nothing indicated an installation failure.

> Phillip Lemky wrote:
>> Hi,
>>
>> I ran: install Date::Calc (At least, I think I installed it. I'm not
>> sure how to check
>> if it actually is installed.)
>
>> When I go to run it, I get the following: Can't locate Date/Calc.pm in
>> @INC.
>
> Not installed.
>
> Why don't you try installing it again, but actually watch the output
> this time.
>
> -jp
>



Posted by Donald King on February 10, 2006, 12:04 am
Please log in for more thread options


Phillip Lemky wrote:
> I did watch the output. There were a couple of "NOT OK" messages, but
> nothing indicated an installation failure.
>
[Snip]

FYI, CPAN will refuse to install a module if it fails even a single test
when it runs "make test". If the test suite is just being overzealous,
you can override that with "force install <module>", but in general
failed tests mean that you need to drop to a shell using "look <module>"
and read the documentation.

--
Donald King, a.k.a. Chronos Tachyon
http://chronos-tachyon.net/

Posted by Paul Lalli on February 10, 2006, 9:03 am
Please log in for more thread options


Phillip Lemky wrote:
> I did watch the output. There were a couple of "NOT OK" messages, but
> nothing indicated an installation failure.

Uh. In general, "NOT OK" *is* an installation failure indicator...

Perhaps you should copy and paste the actual output of the CPAN
install command...

Paul Lalli


Similar ThreadsPosted
problems with Date-Calc July 8, 2004, 3:09 pm
Date::Calc install September 8, 2004, 10:02 am
military time with Date::Calc June 9, 2005, 1:09 am
Date::MSAccess V 1.01 July 29, 2004, 7:15 am
perl date manipulation October 21, 2004, 5:02 pm
ANNOUNCE: Date::MSAccess V 1.02 February 14, 2005, 10:44 am
Date::Simple confusion May 8, 2005, 6:10 pm
Date and time--recommended module? November 8, 2006, 3:41 pm
Use of uninitialized value in numeric lt (<) at /Date/Manip.pm September 16, 2008, 12:58 pm
Handle multiple input date formats? September 11, 2004, 11:56 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap