Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
go ahead... be a heretic
 
PerlMonks  

problem while installing the perl module manually!!!

by vijayarl (Initiate)
on Sep 12, 2008 at 14:40 UTC ( #710912=perlquestion: print w/ replies, xml ) Need Help??
vijayarl has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,
Am newbie,i have windows2000 & Activestate perl v5.10.0 installed in my system.
Problem:trying to install perl module manually
Followed these steps:
1.Downloaded Spreadsheet-WriteExcel-2.25 perl module from CPAN
2.Unziped the file
3.In cmd prompt,i went into the folder path then typed ie,
C:\Perl\Spreadsheet-WriteExcel-2.25> perl Makefile.pl
it says :'perl' is not recognized as an internal or external command,operable program or batch file.


even i did set the Env Path variable,but still am getting this error message
Can anyone help on this ??
Thanks,
Vijay

Comment on problem while installing the perl module manually!!!
Download Code
Re: problem while installing the perl module manually!!!
by talexb (Canon) on Sep 12, 2008 at 14:42 UTC
      it says :'perl' is not recognized as an internal or external command,operable program or batch file.

    So Perl isn't in your path. Fix that problem, and you can continue.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

      thank you,
      but i did set the PATH variable, but i don't have the admin rights to my system
      but i did changed my working dir to
      <h1> C:\Perl\Spreadsheet-WriteExcel-2.25>cd \<br> C:\>cd perl<br> C:\Perl>cd bin<br> C:\Perl\bin>perl Makefile.PL<br> Writing Makefile for File::Temp<br> Writing Makefile for OLE::Storage_Lite<br> Writing Makefile for PadWalker<br> Writing Makefile for Parse::RecDescent<br> Warning: prerequisite OLE::Storage_Lite 0.08 not found.<br> Writing Makefile for Spreadsheet::ParseExcel<br> $Config{useperlio} is defined, removing requirement of IO::Scalar<br> Warning: prerequisite IO::Scalar 0 not found.<br> Warning: prerequisite OLE::Storage_Lite 0.08 not found.<br> Writing Makefile for Spreadsheet::ParseExcel<br> Do you want to install 'xlscat' (Convert Spreadsheet to plain text or +CSV) ? [n ] y<br> Do you want to install 'ss2tk' (Show a Spreadsheet in Perl/Tk) ? [n] +y<br> Warning: prerequisite Spreadsheet::ParseExcel 0.26 not found.<br> Warning: prerequisite Spreadsheet::ReadSXC 0.2 not found.<br> Warning: prerequisite Text::CSV_XS 0 not found.<br> Writing Makefile for Spreadsheet::Read<br> Warning: prerequisite OLE::Storage_Lite 0.14 not found.<br> Warning: prerequisite Parse::RecDescent 0 not found.<br> Writing Makefile for Spreadsheet::WriteExcel<br> Writing Makefile for Spreadsheet::ReadSXC<br> C:\Perl\bin>nmake<br> Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved.<br> nmake -f Makefile all -nologo<br> cd ..<br> nmake -f Makefile all -nologo<br> cd ..<br> nmake -f Makefile all -nologo<br> cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSO +LE -DNO_ST RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPER +L_IMPLICIT _CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Z +i -DNDEBUG -O1 -DVERSION=\"1.7\" -DXS_VERSION=\"1.7\" "-IC:\Perl\lib\CORE" + PadWalke r.c<br> 'cl' is not recognized as an internal or external command, operable program or batch file.<br> NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code ' +0x1' Stop.<br> NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code ' +0x2' Stop.<br> C:\Perl\bin>nmake test<br> Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved.<br> nmake -f Makefile all -nologo<br> cd ..<br> nmake -f Makefile all -nologo<br> cd ..<br> nmake -f Makefile all -nologo<br> cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSO +LE -DNO_ST RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPER +L_IMPLICIT _CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Z +i -DNDEBUG -O1 -DVERSION=\"1.7\" -DXS_VERSION=\"1.7\" "-IC:\Perl\lib\CORE" + PadWalke r.c<br> 'cl' is not recognized as an internal or external command, operable program or batch file.<br> NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code ' +0x1' Stop.<br> NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code ' +0x2' Stop.<br> C:\Perl\bin>nmake15 install<br> PKSFX (R) FAST! Self Extract Utility Version 2.04g 02-01-93<br> Copr. 1989-1993 PKWARE Inc. All Rights Reserved. Shareware version<br> PKSFX Reg. U.S. Pat. and Tm. Off.<br> Searching EXE: C:/PERL/BIN/NMAKE15.EXE<br>

      but still am not able to run my perl script as it says
      <h1> C:\Perl\bin>perl process_stats_iconprod.pl<br> Can't locate Spreadsheet/WriteExcel.pm in @INC (@INC contains: C:/Perl +/site/lib C:/Perl/lib .) at process_stats_iconprod.pl line 4. BEGIN failed--compilation aborted at process_stats_iconprod.pl line 4.

      can you tell me where am going wrong ???
      Thanks,
      Vijay
        You're doing everything wrong :)
        First mistake is that you unpacked Spreadsheet-WriteExcel in your perl\bin directory. Thats probably broke some things. Reinstall perl, then follow A Guide to Installing Modules

        I can explain that error.

        The module PadWalker is a dependency of Spreadsheet::WriteExcel. PadWalker apparently uses some XS code, which requires a C compiler. Since ActiveState Perl was compiled with Microsoft Visual Studio it is looking for a program called "cl" which is a command line C compiler that comes with Visual Studio.

        You may be able to get it working by downloading Visual C++ Express and adding its bin directory to your path. But If you aren't planning on doing any C development in the future, you are better off just installing the precompiled PPM as another commenter suggested, here are some instructions on how to do that.

        Once, I also installed perl on a system without admin rights. So the PATH environment variable was not updated, and it made perl hard to use. But I created a shortcut to cmd.exe and set Target to:
        %SystemRoot%\system32\cmd.exe /v:on /k set path=c:\perl\site\bin;c:\pe +rl\bin;!path!

        So the PATH is set correctly whenever I use the shortcut to spawn a cmd shell.

        I also had to update a few other things, like the PATH in Vim, and the path to perl in the pl2bat program that comes with ActiveState.

Re: problem while installing the perl module manually!!!
by dHarry (Monsignor) on Sep 12, 2008 at 14:51 UTC

    I am pretty sure you can use Active State's ppm to install it so then you don't have to do it manually. Type ppm at the command line and select the module you want to install.

      You can install an old version, not the newest, and since Spreadsheet::WriteExcel is pure perl, non-ppm is the way to go.
        Thanks Everyone for your valuable inputs Am able to install all the modules without any error & even able to run my perl script without any issues. Now,am facing 1 more issues ie, Am using Eclipse IDE for debugging perl script or can say for step by step execution so that i can see local variable value during run time since to view the local variable value during run time,Eclipse want PadWalker module to get install for Pad Walker module we need Visual C++ Express installed. now, my real problem: i have Win2k OS but this Visual C++ Express needs WinXP to get installed so now i got struck :-(
        Can any one tell me any other mean to achieve my problem ? when i tried to install the PadWalker i got this ouput:
        C:\CPAN Modules\PadWalker-1.5>perl Makefile.pl<br> Writing Makefile for PadWalker<br> C:\CPAN Modules\PadWalker-1.5>nmake<br> Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSO +LE -DNO_ST RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPER +L_IMPLICIT _CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Z +i -DNDEBUG -O1 -DVERSION=\"1.5\" -DXS_VERSION=\"1.5\" "-IC:\Perl\lib\CORE" + PadWalke r.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code ' +0x1' Stop.

        Is it possible to view the local variable value during run time without installing PadWalker in Eclipse??
        Regards,
        Vijayarl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-04-17 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (439 votes), past polls