Main Page | Report this Page
Computers Forum Index  »  Computer Languages (Perl - Modules)  »  newbie question: prerequisites missing: going in...
Page 1 of 1    

newbie question: prerequisites missing: going in...

Author Message
Jim Gibson...
Posted: Sat Aug 22, 2009 1:21 am
Guest
In article
<4a5705c1-7c7d-42aa-b73b-45d684c971c7 at (no spam) i18g2000pro.googlegroups.com>,
RussP <russ.petruzzelli at (no spam) gmail.com> wrote:

Quote:
I wanted to try out programmatically adding entries to Google
calendar.
I found a perl module I wanted to try called: Net-Google-
Calendar-0.97
I downloaded and attempted to build it...but,

I apparently am missing some modules. When I tried to build the first
prerequisite module (DateTime), the module complained I was missing
more things. But those "more things" are sub-components of the thing
I'm trying to get.
i.e., I'm trying to get DateTime, and "perl MakeFile.PL" complains I'm
missing
DateTime::Locale and DateTime::TimeZone
Won't I be getting those in the module itself?

Not necessarily. The naming convention A::B for Perl modules doesn't
mean that B is a "sub-module" of A. B is a totally separate module. The
source for B will be found in .../A/B.pm, where '...' is one of the
Perl libraries on your search stack (see 'perldoc -V' for a list).

Sometimes module B will be part of the distribution of A. However, by
searching CPAN (search.cpan.org), I can see that both DateTime::Locale
and DateTime::TimeZone have separate distributions:

http://search.cpan.org/~drolsky/DateTime-Locale-0.43/lib/DateTime/Locale.
pm

http://search.cpan.org/~drolsky/DateTime-TimeZone-0.96/lib/DateTime/Time
Zone.pm

So you can download those modules and install them separately.

Have you tried the CPAN module? It will resolve such dependencies
automatically. You run it with

perl -MCPAN -e shell

or just

cpan

on certain platforms. Answer some questions (the default should work),
pick one or more CPAN repositories from the list, and type

install Net::Google::Calendar

and hopefully it will all work for you.

--
Jim Gibson
 
 
Page 1 of 1    
All times are GMT
The time now is Mon Nov 23, 2009 11:25 am