I am trying to install Date::Manip on Mac OS X 10.10 using cpan. I have Xcode and command line tools installed. When I type
sudo cpan -i Date::Manip
I see the following error:
---- Unsatisfied dependencies detected during ----
---- SBECK/Date-Manip-6.59.tar.gz ----
ExtUtils::MakeMaker [build_requires]`
This doesn't make sense, because ExtUtils::MakeMaker
is already installed on my system:
$ cpan -D ExtUtils::MakeMaker
Reading '/Users/myname/.cpan/Metadata'
Database was generated on Sun, 06 Aug 2017 20:17:02 GMT
ExtUtils::MakeMaker
Writes Makefiles for extensions
B/BI/BINGOS/ExtUtils-MakeMaker-7.30.tar.gz
/System/Library/Perl/5.18/ExtUtils/MakeMaker.pm
Installed: 6.66
CPAN: 7.30 Not up to date
Michael G Schwern (MSCHWERN)
mschwern at cpan.org
I don't understand why the Date::Manip install can't find it.
The installer next tries to install ExtUtils::MakeMaker
(since it thinks it's missing), and that installation fails. That may be a separate issue, but I'm not concerned with that at the moment - I just want to get Date::Manip
installed, using the current version of MakeMaker
.
How can I get cpan
to locate and use the current installed version of ExtUtils::MakeMaker
?
Additional information:
$ sudo which perl
/usr/bin/perl
$ which perl
/usr/bin/perl
$ sudo which cpan
/usr/bin/cpan
$ which cpan
/usr/bin/cpan