http://www.perlmonks.org?node_id=821955


in reply to Re: Configuring Mac OS X to Install Perl Modules
in thread Configuring Mac OS X to Install Perl Modules

These posts pointed me in the write direction. Hopefully, this clarification can help someone else fix this same problem.

To install DateTime on Mac

  1. read the original post from Perrmoss and the reply by Corion for background info
  2. sudo CPAN
  3. go through configuration (if needed) press enter for most options except:
  4. choose "follow" for the prerequisite policy (instead of ask)
  5. personally, I made the recommended/common choices to some of the options (like UNINST=1)
  6. Now here's the key:

  7. Try to install DateTime. Every time you see an error, install the package that's missing by:
    • Looking for text along the lines of
    • Can't locate Params/Validate.pm in @INC (@INC

      or

      Can't locate DateTime/Locale.pm in @INC (@INC

    • Take the "Params/Validate.pm" part and convert it to Params::Validate
    • and run the corresponding command in CPAN: install Params::Validate

For me to get the DateTime module to install I had to run the following, first:

install Params::Validate

install DateTime::Locale

install DateTime::TimeZone

Keep following that pattern and you'll get it installed, finally!!!