Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateTime::TimeZone, unfound pm files

Status
Not open for further replies.

yourkeylady

Programmer
Jan 8, 2004
63
US
I thought I would use DateTime::TimeZone to get the local times when given a past UTC time for input.

But I get *.pm files not found.

I downloaded it with ppm.

The ppm program reported the install was good.

It should not have the trouble of finding sub modules.

I'm not sure how to get it to function.

Thanks
Tricia
 
Well considering DateTime::TimeZone has well over enough sub-modules to totally fill my command prompt window for ppm, it might help more if you tell us which .pm file it says is missing. :)
 
My problem is when I search for DateTime/Duration.pm it is there.

[Tue Apr 18 12:41:45 2006] [error] [client 127.0.0.1] Can't locate DateTime/Duration.pm in @INC (@INC contains: c:/perl/site/lib/DateTime C:/perl/site/lib/ActiveState C:\perl\site\lib\ActiveState C:/perl/lib C:/perl/site/lib .) at C:/perl/site/lib/DateTime/TimeZone/OlsonDB.pm line 821.

[Tue Apr 18 12:41:45 2006] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at C:/perl/site/lib/DateTime/TimeZone/OlsonDB.pm line 821.

[Tue Apr 18 12:41:45 2006] [error] [client 127.0.0.1] Compilation failed in require at C:/perl/site/lib/DateTime/TimeZone/America/Chicago.pm line 16.

[Tue Apr 18 12:41:45 2006] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at C:/perl/site/lib/DateTime/TimeZone/America/Chicago.pm line 16.

[Tue Apr 18 12:41:45 2006] [error] [client 127.0.0.1] Compilation failed in require at (eval 5) line 3.


Thanks
Tricia
 
It looks like you'll have to install this module manually, without PPM.

For most pure Perl modules, you can just copy the .pm files from CPAN distributions into your Perl lib (hopefully you caught on by now that "/" in the filename is "::" in the module name, DateTime/Duration.pm = DateTime::Duration)


So if you save the PM to your Perl/site/lib/DateTime/Duration.pm, it should work.
 
I moved all the files up one directory but that didn't work.
Isn't the @INC array the same in the require and use of sub files?

If the directory is in @INC I don't see why I have to move the files. I thought maybe it was the directory separators so I changed those.

@INC (c:/perl/site/lib/DateTime C:/perl/site/lib/ActiveState C:\perl\site\lib\ActiveState C:/perl/lib C:/perl/site/lib )



Thanks
Tricia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top