dotykg has asked for the wisdom of the Perl Monks concerning the following question:

Dear Colleague:

My ultimate goal is to install the DateTime module in one of my non-home directories on a Linux cluster machine (OS is Redhat Enterprise 5). I decided to go down the route of installing my own personal version of Perl to accomplish this. I first installed version 33 of “perlbrew” and then used it to install Perl version 5.8.9. I then used “perlbrew” to install cpanm. At this point the following executables are underneath the directory “/rstor/dotykg/PERLBREW/bin”:

patchperl perlbrew cpanm

In addition I made changes to “.cshrc” to add “cpanm” to the path and added a “source” command for the “perlbrew” “cshrc” file. The results from “perlbrew env” seem to indicate that those changes were correct.

I then did the following to install the DateTime package:

perlbrew use perl-5.8.9 /rstor/dotykg/PERLBREW/bin/cpanm DateTime

The install failed as shown by the build.log given below. I would appreciate some guidance on how to proceed. Here are the issues as I see them as a rookie:

  1. Does cpanm not automatically install Cbuilder?
  2. Possible compiler flag/switch issues?
  3. Complaints of “no compiler” – where do I set the “c compiler?”
  4. “Can't locate Params/Validate.pm in @INC” message
  5. Build resorting to “/nas/rhome/dotykg/.cpanm” when I have a “cpanm” version underneath “/rstor/dotykg/PERLBREW/bin”

Many thanks in advance,

Kevin Doty

cpanm (App::cpanminus) 1.5006 on perl 5.008009 built for i686-linux Work directory is /rhome/dotykg/.cpanm/work/1322752961.23472 You have make /usr/bin/make You have /usr/bin/wget You have /bin/tar: tar (GNU tar) 1.15.1 You have /usr/bin/unzip Searching DateTime on cpanmetadb ... --> Working on DateTime Fetching http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime- +0.70.tar.gz -> OK Unpacking DateTime-0.70.tar.gz Entering DateTime-0.70 Checking configure dependencies from META.yml Checking if you have Module::Build 0.3601 ... Yes (0.3800) Configuring DateTime-0.70 Running Build.PL pgcc-Error-Unknown switch: -fno-strict-aliasing pgcc-Error-Unknown switch: -pipe Warning: ExtUtils::CBuilder not installed or no compiler detected Proceeding with configuration, but compilation may fail during Build Checking prerequisites... requires: ! DateTime::Locale is not installed ! DateTime::TimeZone is not installed ! Params::Validate is not installed ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the v +ersions of the modules indicated above before proceeding with this installatio +n Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'DateTime' version '0.70' -> OK Checking dependencies from MYMETA.json ... Checking if you have Test::More 0.88 ... Yes (0.98) Checking if you have Test::Exception 0 ... Yes (0.31) Checking if you have Module::Build 0.3601 ... Yes (0.3800) Checking if you have ExtUtils::CBuilder 0 ... Yes (0.280202) Checking if you have Scalar::Util 0 ... Yes (1.19) Checking if you have DateTime::TimeZone 1.09 ... No Checking if you have DateTime::Locale 0.41 ... No Checking if you have Params::Validate 0.76 ... No Checking if you have Math::Round 0 ... Yes (0.06) Checking if you have Time::Local 1.04 ... Yes (1.1901) ==> Found dependencies: DateTime::TimeZone, DateTime::Locale, Params:: +Validate Searching DateTime::TimeZone on cpanmetadb ... --> Working on DateTime::TimeZone Fetching http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime- +TimeZone-1.42.tar.gz -> OK Unpacking DateTime-TimeZone-1.42.tar.gz Entering DateTime-TimeZone-1.42 Checking configure dependencies from META.yml Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (6.62) Configuring DateTime-TimeZone-1.42 Running Makefile.PL Warning: prerequisite Params::Validate 0.72 not found. Checking if your kit is complete... Looks good Writing Makefile for DateTime::TimeZone Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have Test::More 0.88 ... Yes (0.98) Checking if you have Class::Singleton 1.03 ... Yes (1.4) Checking if you have parent 0 ... Yes (0.225) Checking if you have Params::Validate 0.72 ... No Checking if you have Pod::Man 1.14 ... Yes (1.37) Checking if you have Class::Load 0 ... Yes (0.12) Checking if you have Cwd 3 ... Yes (3.29) ==> Found dependencies: Params::Validate Searching Params::Validate on cpanmetadb ... --> Working on Params::Validate Fetching http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-Va +lidate-1.00.tar.gz -> OK Unpacking Params-Validate-1.00.tar.gz Entering Params-Validate-1.00 Checking configure dependencies from META.yml Checking if you have Module::Build 0.3601 ... Yes (0.3800) Configuring Params-Validate-1.00 Running Build.PL pgcc-Error-Unknown switch: -fno-strict-aliasing pgcc-Error-Unknown switch: -pipe Warning: ExtUtils::CBuilder not installed or no compiler detected Proceeding with configuration, but compilation may fail during Build Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Params-Validate' version '1.00' -> OK Checking dependencies from MYMETA.json ... Checking if you have Test::More 0.88 ... Yes (0.98) Checking if you have Module::Build 0.3601 ... Yes (0.3800) Checking if you have ExtUtils::CBuilder 0 ... Yes (0.280202) Checking if you have Scalar::Util 1.10 ... Yes (1.19) Checking if you have Attribute::Handlers 0.79 ... Yes (0.91) Building and testing Params-Validate-1.00 Building Params-Validate Error: no compiler detected to compile 'lib/Params/Validate.c'. Abort +ing -> FAIL Installing Params::Validate failed. See /rhome/dotykg/.cpanm/b +uild.log for details. -> FAIL Bailing out the installation for DateTime-TimeZone-1.42. Retry + with --prompt or --force. Searching DateTime::Locale on cpanmetadb ... --> Working on DateTime::Locale Fetching http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime- +Locale-0.45.tar.gz -> OK Unpacking DateTime-Locale-0.45.tar.gz Entering DateTime-Locale-0.45 Checking configure dependencies from META.yml Checking if you have Module::Build 0.36 ... Yes (0.3800) Configuring DateTime-Locale-0.45 Running Build.PL Checking prerequisites... requires: ! Params::Validate is not installed ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the v +ersions of the modules indicated above before proceeding with this installatio +n Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'DateTime-Locale' version '0.45' -> OK Checking dependencies from MYMETA.json ... Checking if you have Module::Build 0 ... Yes (0.3800) Checking if you have Params::Validate 0.91 ... No Checking if you have List::MoreUtils 0 ... Yes (0.33) ==> Found dependencies: Params::Validate Already tried Params::Validate. Skipping. Building and testing DateTime-Locale-0.45 blib/lib/DateTime/Locale/ru_RU.pm:61: Unknown command paragraph "=enco +ding utf8" blib/lib/DateTime/Locale/ml.pm:316: Unknown command paragraph "=encodi +ng utf8" blib/lib/DateTime/Locale/om_KE.pm:66: Unknown command paragraph "=enco +ding utf8" blib/lib/DateTime/Locale/fur_IT.pm:61: Unknown command paragraph "=enc +oding utf8" blib/lib/DateTime/Locale/hi_IN.pm:66: Unknown command paragraph "=enco +ding utf8" blib/lib/DateTime/Locale/tig_ER.pm:66: Unknown command paragraph "=enc +oding utf8" blib/lib/DateTime/Locale/cy_GB.pm:56: Unknown command paragraph "=enco +ding utf8" blib/lib/DateTime/Locale/xh_ZA.pm:61: Unknown command paragraph "=enco +ding utf8" blib/lib/DateTime/Locale/mt_MT.pm:66: Unknown command paragraph "=enco +ding utf8" blib/lib/DateTime/Locale/ku_SY.pm:41: Unknown command paragraph "=enco +ding utf8" blib/lib/DateTime/Locale/es_UY.pm:61: Unknown command paragraph "=enco +ding utf8" blib/lib/DateTime/Locale/lo_LA.pm:66: Unknown command paragraph "=enco +ding utf8" blib/lib/DateTime/Locale/is_IS.pm:61: Unknown command paragraph "=enco +ding utf8" blib/lib/DateTime/Locale/sid_ET.pm:66: Unknown command paragraph "=enc +oding utf8" . . . And many more similar errors … . . . blib/lib/DateTime/Locale/es_CR.pm:66: Unknown command paragraph "=enco +ding utf8" blib/lib/DateTime/Locale/rw.pm:161: Unknown command paragraph "=encodi +ng utf8" blib/lib/DateTime/Locale/pa_PK.pm:61: Unknown command paragraph "=enco +ding utf8" Building DateTime-Locale Can't locate Params/Validate.pm in @INC (@INC contains: /nas/rhome/dot +ykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/lib /nas/r +home/dotykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/ar +ch /rstor/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9/i686-linux /rsto +r/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9 /rstor/dotykg/PERLBREW/p +erls/perl-5.8.9/lib/site_perl/5.8.9/i686-linux /rstor/dotykg/PERLBREW +/perls/perl-5.8.9/lib/site_perl/5.8.9 .) at /nas/rhome/dotykg/.cpanm/ +work/1322752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/B +ase.pm line 9. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/Base.pm l +ine 9. Compilation failed in require at /nas/rhome/dotykg/.cpanm/work/1322752 +961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 10. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 1 +0. Compilation failed in require at t/01basic.t line 8. BEGIN failed--compilation aborted at t/01basic.t line 8. t/01basic.t .......... Dubious, test returned 2 (wstat 512, 0x200) No subtests run Can't locate Params/Validate.pm in @INC (@INC contains: /nas/rhome/dot +ykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/lib /nas/r +home/dotykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/ar +ch /rstor/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9/i686-linux /rsto +r/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9 /rstor/dotykg/PERLBREW/p +erls/perl-5.8.9/lib/site_perl/5.8.9/i686-linux /rstor/dotykg/PERLBREW +/perls/perl-5.8.9/lib/site_perl/5.8.9 .) at /nas/rhome/dotykg/.cpanm/ +work/1322752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/B +ase.pm line 9. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/Base.pm l +ine 9. Compilation failed in require at /nas/rhome/dotykg/.cpanm/work/1322752 +961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 10. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 1 +0. Compilation failed in require at t/02iso639-2.t line 6. BEGIN failed--compilation aborted at t/02iso639-2.t line 6. t/02iso639-2.t ....... Dubious, test returned 2 (wstat 512, 0x200) No subtests run Can't locate Params/Validate.pm in @INC (@INC contains: /nas/rhome/dot +ykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/lib /nas/r +home/dotykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/ar +ch /rstor/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9/i686-linux /rsto +r/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9 /rstor/dotykg/PERLBREW/p +erls/perl-5.8.9/lib/site_perl/5.8.9/i686-linux /rstor/dotykg/PERLBREW +/perls/perl-5.8.9/lib/site_perl/5.8.9 .) at /nas/rhome/dotykg/.cpanm/ +work/1322752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/B +ase.pm line 9. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/Base.pm l +ine 9. Compilation failed in require at /nas/rhome/dotykg/.cpanm/work/1322752 +961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 10. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 1 +0. Compilation failed in require at t/03alias.t line 6. BEGIN failed--compilation aborted at t/03alias.t line 6. # Looks like your test exited with 2 before it could output anything. t/03alias.t .......... Dubious, test returned 2 (wstat 512, 0x200) Failed 5/5 subtests Can't locate Params/Validate.pm in @INC (@INC contains: /nas/rhome/dot +ykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/lib /nas/r +home/dotykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/ar +ch /rstor/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9/i686-linux /rsto +r/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9 /rstor/dotykg/PERLBREW/p +erls/perl-5.8.9/lib/site_perl/5.8.9/i686-linux /rstor/dotykg/PERLBREW +/perls/perl-5.8.9/lib/site_perl/5.8.9 .) at /nas/rhome/dotykg/.cpanm/ +work/1322752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/B +ase.pm line 9. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/Base.pm l +ine 9. Compilation failed in require at /nas/rhome/dotykg/.cpanm/work/1322752 +961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 10. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 1 +0. Compilation failed in require at t/04format-length.t line 6. BEGIN failed--compilation aborted at t/04format-length.t line 6. # Looks like your test exited with 2 before it could output anything. t/04format-length.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 8/8 subtests Can't locate Params/Validate.pm in @INC (@INC contains: /nas/rhome/dot +ykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/lib /nas/r +home/dotykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/ar +ch /rstor/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9/i686-linux /rsto +r/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9 /rstor/dotykg/PERLBREW/p +erls/perl-5.8.9/lib/site_perl/5.8.9/i686-linux /rstor/dotykg/PERLBREW +/perls/perl-5.8.9/lib/site_perl/5.8.9 .) at /nas/rhome/dotykg/.cpanm/ +work/1322752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/B +ase.pm line 9. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/Base.pm l +ine 9. Compilation failed in require at /nas/rhome/dotykg/.cpanm/work/1322752 +961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 10. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 1 +0. Compilation failed in require at t/05register.t line 6. BEGIN failed--compilation aborted at t/05register.t line 6. # Looks like your test exited with 2 before it could output anything. t/05register.t ....... Dubious, test returned 2 (wstat 512, 0x200) Failed 14/14 subtests Can't locate Params/Validate.pm in @INC (@INC contains: /nas/rhome/dot +ykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/lib /nas/r +home/dotykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/ar +ch /rstor/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9/i686-linux /rsto +r/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9 /rstor/dotykg/PERLBREW/p +erls/perl-5.8.9/lib/site_perl/5.8.9/i686-linux /rstor/dotykg/PERLBREW +/perls/perl-5.8.9/lib/site_perl/5.8.9 .) at /nas/rhome/dotykg/.cpanm/ +work/1322752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/B +ase.pm line 9. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/Base.pm l +ine 9. Compilation failed in require at /nas/rhome/dotykg/.cpanm/work/1322752 +961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 10. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 1 +0. Compilation failed in require at t/06storable.t line 17. BEGIN failed--compilation aborted at t/06storable.t line 17. # Looks like your test exited with 2 before it could output anything. t/06storable.t ....... Dubious, test returned 2 (wstat 512, 0x200) Failed 3/3 subtests Can't locate Params/Validate.pm in @INC (@INC contains: /nas/rhome/dot +ykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/lib /nas/r +home/dotykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/ar +ch /rstor/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9/i686-linux /rsto +r/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9 /rstor/dotykg/PERLBREW/p +erls/perl-5.8.9/lib/site_perl/5.8.9/i686-linux /rstor/dotykg/PERLBREW +/perls/perl-5.8.9/lib/site_perl/5.8.9 .) at /nas/rhome/dotykg/.cpanm/ +work/1322752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/B +ase.pm line 9. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/Base.pm l +ine 9. Compilation failed in require at /nas/rhome/dotykg/.cpanm/work/1322752 +961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 10. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 1 +0. Compilation failed in require at t/07script.t line 16. BEGIN failed--compilation aborted at t/07script.t line 16. # Looks like your test exited with 2 before it could output anything. t/07script.t ......... Dubious, test returned 2 (wstat 512, 0x200) Failed 4/4 subtests Can't locate Params/Validate.pm in @INC (@INC contains: /nas/rhome/dot +ykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/lib /nas/r +home/dotykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/ar +ch /rstor/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9/i686-linux /rsto +r/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9 /rstor/dotykg/PERLBREW/p +erls/perl-5.8.9/lib/site_perl/5.8.9/i686-linux /rstor/dotykg/PERLBREW +/perls/perl-5.8.9/lib/site_perl/5.8.9 .) at /nas/rhome/dotykg/.cpanm/ +work/1322752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/B +ase.pm line 9. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/Base.pm l +ine 9. Compilation failed in require at /nas/rhome/dotykg/.cpanm/work/1322752 +961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 10. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 1 +0. Compilation failed in require at t/08dash-in-name.t line 6. BEGIN failed--compilation aborted at t/08dash-in-name.t line 6. # Looks like your test exited with 2 before it could output anything. t/08dash-in-name.t ... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests Can't locate Params/Validate.pm in @INC (@INC contains: /nas/rhome/dot +ykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/lib /nas/r +home/dotykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/ar +ch /rstor/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9/i686-linux /rsto +r/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9 /rstor/dotykg/PERLBREW/p +erls/perl-5.8.9/lib/site_perl/5.8.9/i686-linux /rstor/dotykg/PERLBREW +/perls/perl-5.8.9/lib/site_perl/5.8.9 .) at /nas/rhome/dotykg/.cpanm/ +work/1322752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/B +ase.pm line 9. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/Base.pm l +ine 9. Compilation failed in require at /nas/rhome/dotykg/.cpanm/work/1322752 +961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 10. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 1 +0. Compilation failed in require at t/09version-check.t line 20. BEGIN failed--compilation aborted at t/09version-check.t line 20. t/09version-check.t .. Dubious, test returned 2 (wstat 512, 0x200) No subtests run Can't locate Params/Validate.pm in @INC (@INC contains: /nas/rhome/dot +ykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/lib /nas/r +home/dotykg/.cpanm/work/1322752961.23472/DateTime-Locale-0.45/blib/ar +ch /rstor/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9/i686-linux /rsto +r/dotykg/PERLBREW/perls/perl-5.8.9/lib/5.8.9 /rstor/dotykg/PERLBREW/p +erls/perl-5.8.9/lib/site_perl/5.8.9/i686-linux /rstor/dotykg/PERLBREW +/perls/perl-5.8.9/lib/site_perl/5.8.9 .) at /nas/rhome/dotykg/.cpanm/ +work/1322752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/B +ase.pm line 9. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale/Base.pm l +ine 9. Compilation failed in require at /nas/rhome/dotykg/.cpanm/work/1322752 +961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 10. BEGIN failed--compilation aborted at /nas/rhome/dotykg/.cpanm/work/132 +2752961.23472/DateTime-Locale-0.45/blib/lib/DateTime/Locale.pm line 1 +0. Compilation failed in require at t/10deprecated.t line 13. BEGIN failed--compilation aborted at t/10deprecated.t line 13. t/10deprecated.t ..... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/pod-coverage.t ..... skipped: This test is only run for the module a +uthor t/pod.t .............. skipped: This test is only run for the module a +uthor Test Summary Report ------------------- t/01basic.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/02iso639-2.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/03alias.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 5 tests but ran 0. t/04format-length.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 8 tests but ran 0. t/05register.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 14 tests but ran 0. t/06storable.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 3 tests but ran 0. t/07script.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 4 tests but ran 0. t/08dash-in-name.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 2 tests but ran 0. t/09version-check.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/10deprecated.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=12, Tests=0, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.22 cusr + 0.10 csys = 0.36 CPU) Result: FAIL Failed 10/12 test programs. 0/0 subtests failed. -> FAIL Installing DateTime::Locale failed. See /rhome/dotykg/.cpanm/b +uild.log for details. Already tried Params::Validate. Skipping. -> FAIL Bailing out the installation for DateTime-0.70. Retry with --p +rompt or --force.

Replies are listed 'Best First'.
Re: Problems installing DateTime module ...
by Anonymous Monk on Dec 02, 2011 at 02:47 UTC

    Does cpanm not automatically install Cbuilder?

    The log says CBuilder is installed

     

    Possible compiler flag/switch issues?

    You never show any output from any compiler

    You show a whole bunch of test failures, showing missing prerequisites

     

    Complaints of “no compiler” – where do I set the “c compiler?”

    Since you compiled your own perl, you can just ignore this message, its probably a bug in whatever emitted it

    Here is one way to check

    $ perl -V:cc cc='gcc'; $ which gcc C:/MinGW/bin/gcc.EXE

    But you shouldn't need to do this, esp if you compile your own perl

     

    “Can't locate Params/Validate.pm in @INC” message

    Maybe you want to install Params::Validate?

     

    Build resorting to “/nas/rhome/dotykg/.cpanm” when I have a “cpanm” version underneath “/rstor/dotykg/PERLBREW/bin”

    Configuration directory, configuration files, cache ... does not live under .../bin, and the executable is named cpanm not .cpanm , .cpanm is the config/cache directory

      Dear Anonymous Monk:

      Thank you for your advice. On the compiler issue, here is what I got doing your tests:

      matrix01 51# perl -V:cc cc='cc'; matrix01 52# which gcc /usr/bin/gcc

      I tried installing Params::Validate but I wind up with the same snag:

      cpanm (App::cpanminus) 1.5006 on perl 5.008009 built for i686-linux Work directory is /rhome/dotykg/.cpanm/work/1322841720.1851 You have make /usr/bin/make You have /usr/bin/wget You have /bin/tar: tar (GNU tar) 1.15.1 You have /usr/bin/unzip Searching Params::Validate on cpanmetadb ... --> Working on Params::Validate Fetching http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-Va +lidate-1.00.tar.gz -> OK Unpacking Params-Validate-1.00.tar.gz Entering Params-Validate-1.00 Checking configure dependencies from META.yml Checking if you have Module::Build 0.3601 ... Yes (0.3800) Configuring Params-Validate-1.00 Running Build.PL Warning: ExtUtils::CBuilder not installed or no compiler detected Proceeding with configuration, but compilation may fail during Build Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Params-Validate' version '1.00' -> OK Checking dependencies from MYMETA.json ... Checking if you have Test::More 0.88 ... Yes (0.98) Checking if you have Module::Build 0.3601 ... Yes (0.3800) Checking if you have ExtUtils::CBuilder 0 ... Yes (0.280202) Checking if you have Scalar::Util 1.10 ... Yes (1.19) Checking if you have Attribute::Handlers 0.79 ... Yes (0.91) Building and testing Params-Validate-1.00 Building Params-Validate Error: no compiler detected to compile 'lib/Params/Validate.c'. Abort +ing -> FAIL Installing Params::Validate failed. See /rhome/dotykg/.cpanm/b +uild.log for details.

      Do you possibly have any other ideas? Many thanks, Kevin Doty

        Dear Anonymous Monk:

        After my last e-mail I was looking in ithis directory: /nas/rstor1/dotykg/PERLBREW/build/perl-5.8.9 in the “config.sh” file and it shows the following assignments:

        cc='cc' cccdlflags='-fPIC' ccdlflags='-Wl,-E' ccflags='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_ +SOURCE -D_FILE_OFFSET_BITS=64' ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' ccname='gcc'

        Should the variable “cc” be defined “gcc”? If so can I define it properly and do a reconfigure/reinstall? Many thanks, Kevin Doty