[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1561
  • Last Modified:

How to insatll date::calc module

Hi,
    We have free version 5.008004 .We have to use the date funtion for that we need date::calc module ,which we install from CPAN site.but we are not successfull in installing that module.
 Please tell me how to use install this date::calc module which is important to install for manupulating date .
Regards
Sanika
0
sanika
Asked:
sanika
1 Solution
 
PaulS_IIICommented:
It might be of a benefit to you to update to the latest version of Perl, then try to install the Date::Calc module.

Before doing that, have you tried to force install Date::Calc? At the CPAN prompt type force install Date::Calc and see what that does for you. If it don't work and you don't wish to update your Perl, then I suppose you can download the source code and build and install it from that.

I would still update Perl, though.

Just my thoughts

Paul
0
 
ozoCommented:
  When you typed
perl -MCPAN -e shell;
install Date::Calc
   what went wrong?
0
 
manav_mathurCommented:
isnt ppm available in 5.00804 ??

Manav

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
PaulS_IIICommented:
Isn't ppm for Windows? or atleast that is what I thought.

I guess I just assumed the qustioner was using a *nix system
0
 
TintinCommented:
sanika.

Are you using Perl on a Unix or Windows system?

For Unix, you just install Date::Calc (case matters) the usual way, ie:

either by:

perl -MCPAN -e 'install Date::Calc'

or

unpack the Date::Calc tar file and run

perl Makefile.PL
make
make test
make install

5.00804 is only 2 minor revisions behind the current release.
0
 
sanikaAuthor Commented:
Hi ,
  I m using perl on window..PPM is available with perl n i m able to install the Date::Calc module too.
   Now the problem is different...PPM will install this module thruoght site www.Activestate.com,this address has given in ppd.But at client place where is script will be run internet access is not avalible...so is there any way to make available this Date::Calc module without internet??
     What is TAR file ?Can i make available this module with TAR file?Please let me know..
Thanks & Regards
Sanika
0
 
manav_mathurCommented:
TAR files are standard UNIX compressed files. you would rarely come across them in windows.

relating to your question :

perldoc ppm

 Installing
      ppm install [--location=location] package1 [... packageN]

     Installs the specified software packages. Attempts to install from
     the URL or directory 'location' if the '--location' option is
     specfied.

     The 'package' arguments may be either package names ('foo'),
     pathnames (p:/packages/foo.ppd) or URLs
     (http://www.ActiveState.com/packages/foo.ppd) to specific PPD files.

     In the case where a package name is specified, and the '--location'
     option is not used, ppm will refer to the default repository
     locations.

SO you can download the corresponding ppd file to a local directory and then pass it along to the system not having net access. you can install it from there by giving the --location option and the filepathname along.

Manav
0
 
manav_mathurCommented:
another piece of info regarding this,

http://ppm.activestate.com/PPMPackages/

contains zips of all modules. You first select which version you are using (perl.exe -v). Then download the specific zip file.

On the target system where you want to install the module, unzip the zip file in a temp directory. Then run the comand given in the README file.
ppm install Date-Calc.ppd            ##in your case.

make sure that the path to perl.exe and bin directory of perl are in your PATH environment variable in your target machine.

Manav
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now