Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Problem when installing CPAN Module

by Anonymous Monk
on Jan 09, 2007 at 10:10 UTC ( [id://593689]=perlquestion: print w/replies, xml ) Need Help??

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

Hi monks,

I trying to install CPAN Module.

I already copy both the NMAKE.EXE and the NMAKE.ERR file to my Perl bin directory

Note: I don’t have VC++ in my system

OS (windows XP), perl 5.8.8

I am getting this error when i run nmake command.

nmake cl -c -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_ +STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPER +L_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O +1 -DVERSION=\"1.11\" -DXS_VERSION=\"1.11\" "-IC:\Perl\lib\CORE" + Piece.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x1' Stop.

Advice me...

Replies are listed 'Best First'.
Re: Problem when installing CPAN Module
by Corion (Patriarch) on Jan 09, 2007 at 10:15 UTC

    Install VC++, preferrably exactly the version that was used to compile your perl.exe (traditionally, this is MSVC 6).

    If you're feeling adventurous, you can try one of the prepackaged Perl packages that come with a properly configured compiler (MingGW), like Vanilla Perl or Strawberry Perl, found at the same location.

    If installing a suitable C compiler is impossible, you can try to look for a precompiled version (.ppm) of the module you want (it seems to me you want Time::Piece) and use that, or you can try to investigate the alternative modules that implement the same functionality but are written in pure Perl.

Re: Problem when installing CPAN Module
by bart (Canon) on Jan 09, 2007 at 11:59 UTC
    make is not enough, you need a C compiler for this.

    If you don't want to shell out for Visual C, and are reluctant to try the free version (which is different in some rather significant points), then install MinGW. A modern incarnation of ActivePerl will recognize that you have it and use it instead. It works very well, in my experience.

    Now one easy (but bulky) way to get it, is by installing VanillaPerl/Strawberry Perl. Or you could go the adventurous route, and get/run the MinGW installer from the download site, a file of about 130k: MinGW-5.0.2.exe looks like a good candidate.

    Yup, I tried it, it allows you to install any version you like. (Say "no" to the proposal to upgrade the installer, or it'll just quit.) All you need is the basic C compiler, but installing g++ as well might be a good idea for the future.

    Good luck.

Re: Problem when installing CPAN Module
by syphilis (Archbishop) on Jan 09, 2007 at 12:04 UTC
    As you're probably well aware, 'cl' is part of VC++, and if you don't have VC++, then you don't have 'cl'.

    With ActivePerl 5.8.8,if you don't have VC++ (and can't get hold of VC++ 6.0), then the best milage is obtained by installing the freely available MinGW compiler, then installing ExtUtils::FakeConfig and setting the perl5opt environment variable to -MConfig_m. (In fact, it can be argued that this gives you even better milage than installing VC++ 6.0)

    Even if you don't install ExtUtils::FakeConfig and set perl5opt, you'll still get good milage (assuming you have added the MinGW\bin to your path).

    Cheers,
    Rob
Re: Problem when installing CPAN Module
by bingos (Vicar) on Jan 09, 2007 at 11:26 UTC

    The README.win32 from Perl-5.8.8 distribution has some good advice on installing the Microsoft Visual C++ Toolkit 2003 for use with Perl.

Re: Problem when installing CPAN Module
by sgt (Deacon) on Jan 09, 2007 at 11:24 UTC

    If you don't have the compiler used when perl was compiled (check the output of perl -V), then you can try cygwin (http://www.cygwin.com) that comes with a prepackaged version of gcc and perl, o try to compile perl from sources using mingw (min GNU for windows which has gcc).

    hth --stephan
Re: Problem when installing CPAN Module
by NatureFocus (Scribe) on Jan 09, 2007 at 14:03 UTC
    Hi,

    You might try ActiveState.com. They have the Time::Piece module there and it is already compiled.

    -Eugene

Re: Problem when installing CPAN Module
by shonorio (Hermit) on Jan 09, 2007 at 10:34 UTC
    Check if the nmake is on a directory listed on PATH enviromment, or you can use Dev-Cpp. You must include the Dev-Cpp directory on PATH too, ok.

    Solli Moreira Honorio
    Sao Paulo - Brazil

      Thank for your replay.

      Now i install Dev-Cpp in my system.where i need to set PATH env variable?. How did i check that variable set correctly or not?

      Thanks

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-24 16:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found