in reply to Re: Problems installing DateTime module ...
in thread Problems installing DateTime module ...

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

Replies are listed 'Best First'.
Re^3: Problems installing DateTime module ...
by dotykg (Novice) on Dec 02, 2011 at 17:28 UTC

    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

      Dear Anonymous Monk:

      My system uses the environment modules system:

      http://modules.sourceforge.net/

      In my .cshrc file I was loading several modules. When I removed all module loads and re-installed Perl 5.8.9 I was successful installing the DateTime module. I had several modules loaded (including Portland compiler, MPICH2, HDF, NETCDF, and IDL). - hard to say which one was the culprit.

      Many thanks, Kevin Doty