on windows 7 / cygwin / perl / cpan - cannot install Math::Prime::XS

Discussion in 'Perl Misc' started by SVCitian, Nov 19, 2010.

  1. SVCitian

    SVCitian Guest

    I am unable to install the module: Math::prime::XS

    ...
    Error: no compiler detected to compile 'lib/Math/Prime/XS.c'.
    Aborting
    SCHUBIGER/Math-Prime-XS-0.22.tar.gz
    ....

    Full Details below...

    How to make it work... I have gcc and other compilers for sure..

    Please help.


    User@UserDell ~
    $ cpan

    cpan shell -- CPAN exploration and modules installation (v1.9402)
    Enter 'h' for help.

    cpan[1]> install Math::prime::XS
    CPAN: Storable loaded ok (v2.20)
    Going to read '/home/User/.cpan/Metadata'
    Database was generated on Fri, 19 Nov 2010 07:42:44 GMT
    Running install for module 'Math::prime::XS'
    CPAN: YAML loaded ok (v0.71)
    Running make for S/SC/SCHUBIGER/Math-Prime-XS-0.22.tar.gz
    CPAN: Digest::SHA loaded ok (v5.47)
    CPAN: Compress::Zlib loaded ok (v2.02)
    Checksum for /home/User/.cpan/sources/authors/id/S/SC/SCHUBIGER/Math-
    Prime-XS-0.
    22.tar.gz ok
    Scanning cache /home/User/.cpan/build for sizes
    .............................................................................DONE

    CPAN: Archive::Tar loaded ok (v1.52)
    Math-Prime-XS-0.22
    Math-Prime-XS-0.22/META.yml
    Math-Prime-XS-0.22/Makefile.PL
    Math-Prime-XS-0.22/Build.PL
    Math-Prime-XS-0.22/ppport.h
    Math-Prime-XS-0.22/INSTALL
    Math-Prime-XS-0.22/XS.xs
    Math-Prime-XS-0.22/Changes
    Math-Prime-XS-0.22/README
    Math-Prime-XS-0.22/MANIFEST
    Math-Prime-XS-0.22/lib
    Math-Prime-XS-0.22/lib/Math
    Math-Prime-XS-0.22/lib/Math/Prime
    Math-Prime-XS-0.22/lib/Math/Prime/XS.pm
    Math-Prime-XS-0.22/t
    Math-Prime-XS-0.22/t/pod.t
    Math-Prime-XS-0.22/t/00-load.t
    Math-Prime-XS-0.22/t/pod-coverage.t
    Math-Prime-XS-0.22/t/functions.t
    CPAN: File::Temp loaded ok (v0.22)
    CPAN: Module::Build loaded ok (v0.3613)

    CPAN.pm: Going to build S/SC/SCHUBIGER/Math-Prime-XS-0.22.tar.gz

    cygwin warning:
    MS-DOS style path detected: \Users\User
    Preferred POSIX equivalent is: /cygdrive/c/Users/User
    CYGWIN environment variable option "nodosfilewarning" turns off this
    warning.
    Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
    Warning: ExtUtils::CBuilder not installed or no compiler detected
    Proceeding with configuration, but compilation may fail during Build

    Checking prerequisites...
    requires:
    ! Params::Validate is not installed

    ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the
    versions
    cpan[2]>

    Creating new 'MYMETA.yml' with configuration results
    Creating new 'Build' script for 'Math-Prime-XS' version '0.22'
    ---- Unsatisfied dependencies detected during ----
    ---- SCHUBIGER/Math-Prime-XS-0.22.tar.gz ----
    Params::Validate [requires]
    Running Build test
    Delayed until after prerequisites
    Running Build install
    Delayed until after prerequisites
    Running install for module 'Params::Validate'
    Running make for D/DR/DROLSKY/Params-Validate-0.95.tar.gz
    Checksum for /home/User/.cpan/sources/authors/id/D/DR/DROLSKY/Params-
    Validate-0.
    95.tar.gz ok
    Params-Validate-0.95
    Params-Validate-0.95/META.yml
    Params-Validate-0.95/Changes
    Params-Validate-0.95/README
    Params-Validate-0.95/TODO
    Params-Validate-0.95/MANIFEST
    Params-Validate-0.95/SIGNATURE
    Params-Validate-0.95/LICENSE
    Params-Validate-0.95/Build.PL
    Params-Validate-0.95/t
    Params-Validate-0.95/t/13-taint.t
    Params-Validate-0.95/t/09-regex.t
    Params-Validate-0.95/t/14-no_validate.t
    Params-Validate-0.95/t/03-attribute.t
    Params-Validate-0.95/t/18-depends.t
    Params-Validate-0.95/t/06-options.t
    Params-Validate-0.95/t/04-defaults.t
    Params-Validate-0.95/t/25-undef-regex.t
    Params-Validate-0.95/t/23-readonly.t
    Params-Validate-0.95/t/27-string-as-type.t
    Params-Validate-0.95/t/08-noop_with.t
    Params-Validate-0.95/t/05-noop_default.t
    Params-Validate-0.95/t/pod.t
    Params-Validate-0.95/t/21-can.t
    Params-Validate-0.95/t/30-hashref-alteration.t
    Params-Validate-0.95/t/22-overload-can-bug.t
    Params-Validate-0.95/t/15-case.t
    Params-Validate-0.95/t/01-validate.t
    Params-Validate-0.95/t/10-noop_regex.t
    Params-Validate-0.95/t/17-callbacks.t
    Params-Validate-0.95/t/19-untaint.t
    Params-Validate-0.95/t/29-taint-mode.t
    Params-Validate-0.95/t/28-readonly-return.t
    Params-Validate-0.95/t/02-noop.t
    Params-Validate-0.95/t/pod-coverage.t
    Params-Validate-0.95/t/07-with.t
    Params-Validate-0.95/t/24-tied.t
    Params-Validate-0.95/t/11-cb.t
    Params-Validate-0.95/t/16-normalize.t
    Params-Validate-0.95/t/12-noop_cb.t
    Params-Validate-0.95/t/26-isa.t
    Params-Validate-0.95/t/kwalitee.t
    Params-Validate-0.95/t/lib
    Params-Validate-0.95/t/lib/PVTests.pm
    Params-Validate-0.95/t/lib/PVTests
    Params-Validate-0.95/t/lib/PVTests/Regex.pm
    Params-Validate-0.95/t/lib/PVTests/With.pm
    Params-Validate-0.95/t/lib/PVTests/Standard.pm
    Params-Validate-0.95/t/lib/PVTests/Callbacks.pm
    Params-Validate-0.95/t/lib/PVTests/Defaults.pm
    Params-Validate-0.95/benchmarks
    Params-Validate-0.95/benchmarks/basic
    Params-Validate-0.95/c
    Params-Validate-0.95/c/ppport.h
    Params-Validate-0.95/lib
    Params-Validate-0.95/lib/Params
    Params-Validate-0.95/lib/Params/ValidateXS.pm
    Params-Validate-0.95/lib/Params/Validate.pm
    Params-Validate-0.95/lib/Params/Validate.xs
    Params-Validate-0.95/lib/Params/ValidatePP.pm
    Params-Validate-0.95/lib/Attribute
    Params-Validate-0.95/lib/Attribute/Params
    Params-Validate-0.95/lib/Attribute/Params/Validate.pm
    CPAN: Time::HiRes loaded ok (v1.9719)

    CPAN.pm: Going to build D/DR/DROLSKY/Params-Validate-0.95.tar.gz

    Warning: ExtUtils::CBuilder not installed or no compiler detected
    Proceeding with configuration, but compilation may fail during Build

    Creating new 'MYMETA.yml' with configuration results
    Creating new 'Build' script for 'Params-Validate' version '0.95'
    Building Params-Validate
    Error: no compiler detected to compile 'lib/Params/Validate.c'.
    Aborting
    DROLSKY/Params-Validate-0.95.tar.gz
    ./Build -- NOT OK
    Running Build test
    Can't test without successful make
    Running Build install
    Make had returned bad status, install seems impossible
    Running Build for S/SC/SCHUBIGER/Math-Prime-XS-0.22.tar.gz
    Has already been unwrapped into directory /home/User/.cpan/build/
    Math-Prime-XS
    -0.22-IX4aZj

    CPAN.pm: Going to build S/SC/SCHUBIGER/Math-Prime-XS-0.22.tar.gz

    Warning: Prerequisite 'Params::Validate => 0' for 'SCHUBIGER/Math-
    Prime-XS-0.22.
    tar.gz' failed when processing 'DROLSKY/Params-Validate-0.95.tar.gz'
    with 'make
    => NO'. Continuing, but chances to succeed are limited.
    Building Math-Prime-XS
    Error: no compiler detected to compile 'lib/Math/Prime/XS.c'.
    Aborting
    SCHUBIGER/Math-Prime-XS-0.22.tar.gz
    ./Build -- NOT OK
    Running Build test
    Can't test without successful make
    Running Build install
    Make had returned bad status, install seems impossible
    Failed during this command:
    DROLSKY/Params-Validate-0.95.tar.gz : make NO
    SCHUBIGER/Math-Prime-XS-0.22.tar.gz : make NO

    cpan[2]>
    SVCitian, Nov 19, 2010
    #1
    1. Advertising

  2. SVCitian

    sisyphus Guest

    On Nov 20, 3:22 am, SVCitian <> wrote:
    > I am unable to install the module: Math::prime::XS


    [snip]

    > Warning: ExtUtils::CBuilder not installed or no compiler detected


    Could it be that the *real* reason it won't build is that
    ExtUtils::CBuilder is missing ?

    Cheers,
    Rob
    sisyphus, Nov 20, 2010
    #2
    1. Advertising

  3. SVCitian

    SVCitian Guest

    On Nov 20, 3:16 pm, sisyphus <> wrote:
    > On Nov 20, 3:22 am,SVCitian<> wrote:
    >
    > > I am unable to install the module: Math::prime::XS

    >
    > [snip]
    >
    > > Warning: ExtUtils::CBuilder not installed or no compiler detected

    >
    > Could it be that the *real* reason it won't build is that
    > ExtUtils::CBuilder is missing ?
    >
    > Cheers,
    > Rob


    I did try to install that separately.. and restarted cygwin.

    ExtUtils::CBuilder installed without any errors.. But, then again when
    I tried to install the Math::prime::XS... the messages comes back
    again.

    Please help.
    SVCitian, Nov 22, 2010
    #3
  4. SVCitian

    SVCitian Guest

    On Nov 22, 5:51 pm, SVCitian <> wrote:
    > On Nov 20, 3:16 pm, sisyphus <> wrote:
    >
    > > On Nov 20, 3:22 am,SVCitian<> wrote:

    >
    > > > I am unable to install the module: Math::prime::XS

    >
    > > [snip]

    >
    > > > Warning: ExtUtils::CBuilder not installed or no compiler detected

    >
    > > Could it be that the *real* reason it won't build is that
    > > ExtUtils::CBuilder is missing ?

    >
    > > Cheers,
    > > Rob

    >
    > I did try to install that separately.. and restarted cygwin.
    >
    > ExtUtils::CBuilder installed without any errors.. But, then again when
    > I tried to install the Math::prime::XS... the messages comes back
    > again.
    >
    > Please help.


    Today when I got back home... this is what I have to prove that
    ExtUtils::CBuilder is there..

    Please see below..

    And, I tried to install Math::prime::XS again.. again the same issue
    about ExtUtils::CBuilder and the other messages first posted.



    $ cpan

    cpan shell -- CPAN exploration and modules installation (v1.9402)
    Enter 'h' for help.

    cpan[1]> install ExtUtils::CBuilder
    CPAN: Storable loaded ok (v2.20)
    Going to read '/home/User/.cpan/Metadata'
    Database was generated on Fri, 19 Nov 2010 07:42:44 GMT
    CPAN: LWP::UserAgent loaded ok (v5.835)
    CPAN: Time::HiRes loaded ok (v1.9719)
    Fetching with LWP:
    ftp://mirrors.issp.co.th/cpan/authors/01mailrc.txt.gz
    CPAN: YAML loaded ok (v0.71)
    Going to read '/home/User/.cpan/sources/authors/01mailrc.txt.gz'
    CPAN: Compress::Zlib loaded ok (v2.02)
    ..............................................................................DONE

    Fetching with LWP:
    ftp://mirrors.issp.co.th/cpan/modules/02packages.details.txt.gz
    Going to read '/home/User/.cpan/sources/modules/
    02packages.details.txt.gz'
    Database was generated on Mon, 22 Nov 2010 07:30:30 GMT
    ..............................................................................DONE

    Fetching with LWP:
    ftp://mirrors.issp.co.th/cpan/modules/03modlist.data.gz
    Going to read '/home/User/.cpan/sources/modules/03modlist.data.gz'
    ..............................................................................DONE

    Going to write /home/User/.cpan/Metadata
    ExtUtils::CBuilder is up to date (0.2703).

    cpan[2]>
    SVCitian, Nov 22, 2010
    #4
  5. On 2010-11-22, SVCitian <> wrote:
    > Today when I got back home... this is what I have to prove that
    > ExtUtils::CBuilder is there..


    > ExtUtils::CBuilder is up to date (0.2703).


    "That neighbor of mine? Definitely he is OK: I can see light in his window."

    To see what is actually the problem, do

    perl -MExtUtils::CBuilder -we0

    (No output == it can be loaded. *Then* things may be tricky... But
    most probably you will get some helpful message...)

    Hope this helps,
    Ilya
    Ilya Zakharevich, Nov 23, 2010
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sea
    Replies:
    1
    Views:
    170
    Ben Morrow
    Oct 18, 2004
  2. Jeremy Fischer
    Replies:
    0
    Views:
    184
    Jeremy Fischer
    Jan 16, 2005
  3. carl d.
    Replies:
    1
    Views:
    382
    A. Sinan Unur
    May 10, 2005
  4. SVCitian
    Replies:
    1
    Views:
    937
    SVCitian
    Oct 22, 2010
  5. VK
    Replies:
    15
    Views:
    1,161
    Dr J R Stockton
    May 2, 2010
Loading...

Share This Page