Date::Calc Problem
am 09.02.2006 06:25:34 von Phillip Lemky
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
Re: Date::Calc Problem
am 09.02.2006 17:01:08 von Jake Peavy
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
Re: Date::Calc Problem
am 09.02.2006 18:24:38 von Eric Schwartz
"Phillip Lemky" writes:
> 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.
Why not just install the libdate-calc-perl package, and poof, it's
already integrated with Ubuntu's package management system? Also,
you'll know it works once the package is installed.
-=Eric
Re: Date::Calc Problem
am 10.02.2006 04:54:20 von Phillip Lemky
I did watch the output. There were a couple of "NOT OK" messages, but
nothing indicated an installation failure.
"DJ Stunks" wrote in message
news:1139500868.541081.87570@g47g2000cwa.googlegroups.com...
> 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
>
Re: Date::Calc Problem
am 10.02.2006 04:56:40 von Phillip Lemky
Thanks for the info. I tried: sudo apt-get install libdate-calc-perl. It
worked like a charm. :-)
"Eric Schwartz" wrote in message
news:etoacd030o9.fsf@wilson.emschwar...
> "Phillip Lemky" writes:
>> 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.
>
> Why not just install the libdate-calc-perl package, and poof, it's
> already integrated with Ubuntu's package management system? Also,
> you'll know it works once the package is installed.
>
> -=Eric
Re: Date::Calc Problem
am 10.02.2006 06:04:45 von Donald King
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 ", but in general
failed tests mean that you need to drop to a shell using "look "
and read the documentation.
--
Donald King, a.k.a. Chronos Tachyon
http://chronos-tachyon.net/
Re: Date::Calc Problem
am 10.02.2006 15:03:30 von Paul Lalli
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
Re: Date::Calc Problem
am 10.02.2006 17:13:44 von Eric Schwartz
"Phillip Lemky" writes:
> "Eric Schwartz" wrote in message
>> Why not just install the libdate-calc-perl package, and poof, it's
>> already integrated with Ubuntu's package management system? Also,
>> you'll know it works once the package is installed.
>
> Thanks for the info. I tried: sudo apt-get install libdate-calc-perl. It
> worked like a charm. :-)
I've fixed your quoting style; please don't top-post in the future.
In general, you can install almost any Perl module in Ubuntu via
package management-- they don't have all of CPAN in there, but most of
the most useful libraries are there. To figure out the name, you can
usually transform the Perl module Foo::Bar::Baz to
libfoo-bar-baz-perl. There are a few modules this doesn't work with--
LWP::Simple is provided by libwww-perl-- but in general, that's the
way to figure it out.
-=Eric