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

Hello monks,

I'm having trouble accessing modules from CPAN. I'm trying to get the Statistics::Distributions::Ancova module but I can't even get in. This is what my Command Prompt looks like (I'm on Windows 7)

C:\Users\Ryan>perl -MCPAN Set up gcc environment - 3.4.5 (mingw-vista special r3)

So I figured maybe the command prompt was actively doing something that I couldn't see but after an hour or so I gave up on it. Nothing more happened so I terminated the command. I think that I have to set up a gcc environment (duhr!). It's odd, I've never had my Command Prompt try to command me before...Does anybody have any idea how to do this?

On that note, please monks! I beg thee. I've been all over Google but I can't find anything.

I love you guys (and gals) ♥

Replies are listed 'Best First'.
Re: set up gcc environment - 3.4.5 (mingw-vista special r3)
by Anonymous Monk on Nov 10, 2011 at 22:56 UTC

    Maybe if you tried perl -MCPAN -e shell

    See perlrun for the how/why

    Or simply use cpan as in cpan.bat or perl -S cpan

      Thanks! That worked... Surprised it was so easy.

        Basically, perl tries to read the script to execute from stdin (in this case, your keyboard) if no script was given on the command-line for it to execute. So it was waiting for your input for that hour. (To terminate the input, you can press ctrl-D on the command-line for Unix (you may have to press enter before that), and I believe it is ctrl-Z on dos/windows.)