Re: CPAN - 'cl' is not recognized as an internal or external command,



Ok you seem to be using ActivePerl for windows (you didn't say :)). This is
compiled using Visual C++ version 6, and you have to use the same compiler
to build Perl modules that contain any functions written in C. Some modules
are Pure Perl, so you don't need to worry about compiling any C.

Not everyone is going to have VC++, so there are 2 approaches: By far the
easiest is to use PPM, which gives you compiled windows binaries (as .dll
files) for the relevant bits of the modules you want, and copies these and
the perl code to your perl/site/lib directory. Easy. And there are several
repositories with lots of modules on them, not all of the CPAN, though

More difficult is to build things with Active Perl if you haven't got VC++:
get hold of make.exe, cl.exe etc (you sometimes need a lot of libraries and
header files). Can be a painful way to go.

The Strawberry/Vanilla Perl projects are attempting to provide Windows Perl
distributions compiled using gcc (which is included in the distribution I
think) instead. So you'll be able to use CPAN. They're still experimental
though.

Henry


"MoshiachNow" <lev.weissman@xxxxxxxx> wrote in message
news:1157358492.870947.101260@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Install such modules using the ppm utility instead.

Thanks,Rob
Works like majic.

But why these errors pop up in the first place?
Do I realy need have C++ compilers installed for this ?



.



Relevant Pages

  • Re: Fwd: DBD::Informix A configuration failure
    ... Perl doesn't think your compiler handles prototypes. ... Testing whether your Informix test environment will work... ... >> problems with the test program, you will need to revisit this ...
    (perl.dbi.users)
  • Re: Problem when using NMAKE to build Perl on Windows
    ... I don't think anyone has managed to build perl using that compiler - I haven't checked for a while, so please let me know if you discover that's not so. ... Building perl is a fairly straightforward procedure using Visual Studio 6.0, ... I know activestate uses the freely available Windows Server 2003 R2 Platform SDK compiler for their 64-bit build of ActivePerl. ...
    (comp.lang.perl.misc)
  • Re: ANNOUNCE: DBD:Oracle 1.18
    ... Well a warning in one compiler is better than and error in an other so I ... This might be a problem more with the older oracle OCI in your client. ... perl -Mblib t/26exe_array.t ...
    (perl.dbi.users)
  • Re: Fwd: DBD::Informix A configuration failure
    ... Your previous subject line was 'problem install DBD Informix'. ... > perl Makefile.PL ... > Configuring IBM Informix Database Driver for Perl Version 2003.04 ... Perl doesn't think your compiler handles prototypes. ...
    (perl.dbi.users)
  • Re: Compiler and an interpreter
    ... >>> error.Can anybody please tell me how the compiler and interpreter will ... Some small unit of the language is an acceptable input. ... > Perl does not to my knowledge in any way require the reading of the ...
    (comp.programming)