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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trying to install date:calc

Status
Not open for further replies.

dstevens66

Programmer
Dec 7, 2005
15
US
Hi-
I don't use perl much, so excuse my dense questions....

I've installed perl 5.8.8, and I need to install the Date_Calc module. This version of Perl has a gui type of PPM where I can put a url or point to a windows (I'm on winXP) folder.

I've downloaded date:calc 5.4 to folder and unzipped all the files. I've pointed my PPM gui to it, and it just says 'not found'.

Is there a particular file PPM looks for? Is there a known repository on the web I can point PPM to that has Date_Calc?
 
You should be able to just type "ppm install Date-Calc" on your command line and all things going well it'll download and install it for you.
 
Thanks - I tried that and got a message 'ppm install failed: Can't find any package that provide Date-Calc'

That's why I was thinking it had to be downloaded separately. Any thoughts?
 
I tried this, having it read it on another thread:

C:\perl>perl -MCPAN -e Install Date::Calc
Perl lib version (v5.6.1) doesn't match executable version (v5.8.8) at D:\oracle
\product\10.1.0\db_1\perl\5.6.1\lib\MSWin32-x86/Config.pm line 21.
Compilation failed in require at c:/Perl/lib/CPAN.pm line 12.
BEGIN failed--compilation aborted at c:/Perl/lib/CPAN.pm line 12.
Compilation failed in require.
BEGIN failed--compilation aborted.

Why does it keep looking at the version of perl in the Oracle directory?
 
If you find the PPM archive on ActiveState's site, you can sometimes find a zipped version. Unzip it, cd to the directory with the PPD file, and ppm install file.ppd from the command line.

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Thanks- in all the zipped files I downloaded, I don't have any .ppd files. Is there a non-ppm way to install these files?
 
Actually, I found a .ppd file for date-calc and tried to install.

I got:

C:\Utils\Date-Calc-5.4>ppm install Date-Calc.ppd
ppm install failed: Can't find any package that provide Bit-Vector for Date-Calc

Hunting now for Bit-Vector module....
 
Are you sure it's Date::Calc you really need? Many people use Date::Manip which might be easier to get hold of...

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Yeah, it has to be Date::Calc. I'm trying to make a minor change to an existing program, we don't want to make a big change to it.

The original documentation says just to type 'install Date-Calc' at the ppm prompt. When I try that, I just get 'Can't find any package that provide Date-Calc'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top