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
sanikaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.