http://www.perlmonks.org?node_id=574034

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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: installing perl modules from cmd prompt in windows
by ikegami (Patriarch) on Sep 21, 2006 at 02:48 UTC
    In unix, no message means no error. Can you now use the module? If so, nothing's wrong.
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: installing perl modules from cmd prompt in windows
by Anonymous Monk on Sep 21, 2006 at 08:40 UTC
    A Guide to Installing Modules, perlrun

    C:\>perl -MO=Deparse -MCPAN -e 'shell' use CPAN; '???'; -e syntax OK C:\>perl -MO=Deparse -MCPAN -e shell use CPAN; shell(); -e syntax OK C:\>perl -MO=Deparse -MCPAN -e "shell" use CPAN; shell(); -e syntax OK C:\>
Re: installing perl modules from cmd prompt in windows
by randyk (Parson) on Sep 21, 2006 at 15:04 UTC
    Try
    C:\>perl -MCPAN -e "shell install File::Which" CPAN: Storable loaded ok Going to read C:\Perl\cpan\Metadata Database was generated on Wed, 20 Sep 2006 09:40:02 GMT File::Which is up to date. cpan shell -- CPAN exploration and modules installation (v1.7602) ReadLine support enabled cpan> quit Lockfile removed. C:\>
Re: installing perl modules from cmd prompt in windows
by jfluhmann (Scribe) on Sep 21, 2006 at 19:00 UTC

    Anytime I've installed modules on a Win32 system (not using PPM), I've done the following:

    perl -MCPAN -e"install Blah::Blah"
    or open a shell session via:
    perl -MCPAN -eshell

    Installing via CPAN on a Win32 system works great if you're using Strawberry Perl. You can get a copy from http://vanillaperl.com/. You can also read about it at the win32.perl.org wiki.