less than 1 minute read

When attempting to install the Date::Manip perl module via cpan on Darwin it will probably give an error like:

make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force


You are not really given much information, but if you attempt to build from source you will see a few dependencies are missing:
Test::Pod::Coverage and Test::Inter

Install these first via cpan:

cpan> install Test::Pod::Coverage
cpan> install Test::Inter


After that the cpan install of Date::Manip still did not work for me, but installing from source seemed to.
Download the Date::Manip source (make sure you have developer tools installed to build from source)
http://search.cpan.org/~sbeck/Date-Manip-6.11/lib/Date/Manip.pod

Building this module is a bit weird. Unpack it, and move into the directory. Then run the following to build and install:

perl Build.PL
./Build test
sudo ./Build install



source: http://faq.perl.org/perlfaq8.html#How_do_I_install_a_m