in reply to Re^3: mysql installation w/cpan
in thread mysql installation w/cpan

MinGW is installed in c:\MinGW....using ActiveState v5.10.1 x64

Replies are listed 'Best First'.
Re^5: mysql installation w/cpan
by BrowserUk (Patriarch) on Mar 19, 2010 at 11:30 UTC

    The first thing to check is that your compiler is in your path. Not that that is any guarentee that the EU:MM tools will "find" it.

    I recently encountered a problem with building a module (threads) where the EU::MM generated makefile refused to do anything, because it decided I didn't have a compiler.

    Turned out that it was trying to use -x 'cl' to determine if the compiler existed and was executable, which is never going to work as the file is cl.exe. I bypassed the problem by just commenting out the dumb test and it went ahead successfully.

    You could try doing:

    perl -d:Trace c:\yourPerl\bin\cpan.bat

    to try and track down where (and what it is doing), to decide you don't have a compiler. But to do that you'd need to have Devel::Trace installed, which you probably don't. Catch22.

    However, Devel::Trace is a very simple module and can be installed manually by downloading this file into c:\yourPerl\lib\Devel\ directory.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      neat program...but I don't have cpan.bat...I'll try to find one.

        Sorry, I was assuming you were using AS perl. If not, do the same thing, but on cpan.pl:

        c:\test>perl -d:Trace \perl64\bin\cpan.pl >> [0] \perl64\bin\cpan.pl : 172: cluck 'About to use cpan. +pm'; >> [0] C:/Perl64/lib/Carp.pm : 47: sub cluck { warn longme +ss @_ } >> [0] C:/Perl64/lib/Carp.pm : 28: sub longmess { goto &lon +gmess_jmp } >> [0] C:\Perl64\lib/Carp/Heavy.pm : 46: my $call_pack = calle +r(); >> [0] C:\Perl64\lib/Carp/Heavy.pm : 47: if ($Internal{$call_p +ack} or $CarpInternal{$call_pack}) { >> [0] C:\Perl64\lib/Carp/Heavy.pm : 48: return longmess_hea +vy(@_); >> [0] C:\Perl64\lib/Carp/Heavy.pm : 183: return @_ if ref($_[0]) +; # don't break references as exceptions >> [0] C:\Perl64\lib/Carp/Heavy.pm : 184: my $i = long_error_loc( +); ... >> [0] C:\Perl64\lib/CPAN/Shell.pm : 1469: print $swhat; cpan shell -- CPAN exploration and modules installation (v1.9402) Enter 'h' for help. >> [0] C:/Perl64/lib/CPAN.pm : 323: my($continuation) = " +"; >> [0] C:/Perl64/lib/CPAN.pm : 324: my $last_term_ornamen +ts; >> [0] C:/Perl64/lib/CPAN.pm : 325: SHELLCOMMAND: while () +{ >> [0] C:/Perl64/lib/CPAN.pm : 326: if ($Suppress_rea +dline) { >> [0] C:/Perl64/lib/CPAN.pm : 327: if ($Echo_rea +dline) { >> [0] C:/Perl64/lib/CPAN.pm : 330: print $prompt +; >> [0] C:\Perl64\lib/CPAN/Prompt.pm : 18: my $word = "cpan"; >> [0] C:\Perl64\lib/CPAN/Prompt.pm : 19: unless ($CPAN::META-> +{LOCK}) { >> [0] C:\Perl64\lib/CPAN/Prompt.pm : 22: if ($CPAN::Config->{c +ommandnumber_in_prompt}) { >> [0] C:\Perl64\lib/CPAN/Prompt.pm : 23: sprintf "$word\[% +d]> ", $CPAN::CurrentCommandId; >> [0] C:/Perl64/lib/CPAN.pm : 331: last SHELLCOM +MAND unless defined ($_ = <> ); cpan[1]>

        Note:Your output will be somewhat different because I've tweaked my copy a few times.

        And once you get to the prompt, attempt your install in the normal way:install the::package.

        When it bottles out with the "Can't find your compiler", the last dozen or so lines will show you why. If you have trouble interpreting it, post them (say the last 30 or so) here, and someone maybe able to help you.


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
        If you don't have cpan.bat, you don't have windows, why are you intalling MinGW?
Re^5: mysql installation w/cpan
by Anonymous Monk on Mar 19, 2010 at 11:19 UTC
      "ppm install failed: Can't find any package which provides MinGW" look easy, but isn't