Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Problems installing DateTime module ...

by Anonymous Monk
on Dec 02, 2011 at 02:47 UTC ( [id://941218]=note: print w/replies, xml ) Need Help??


in reply to Problems installing DateTime module ...

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

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

    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

        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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://941218]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found