in reply to Re: problem while installing the perl module manually!!!
in thread problem while installing the perl module manually!!!

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

Replies are listed 'Best First'.
Re^3: problem while installing the perl module manually!!!
by thunders (Priest) on Sep 12, 2008 at 15:13 UTC

    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.

      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 ??
      Regards, Vijayarl
        Is it possible to view the local variable value during run time without installing PadWalker ??
        Like http://www.epic-ide.org/faq.php says, no.
        ppm install http://www.bribes.org/perl/ppm/PadWalker.ppd
Re^3: problem while installing the perl module manually!!!
by runrig (Abbot) on Sep 12, 2008 at 15:36 UTC
    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^3: problem while installing the perl module manually!!!
by Anonymous Monk on Sep 12, 2008 at 15:07 UTC
    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
      You can configure cpan for C:\Perl\.cpan and cpanp (cpanplus) for C:\Perl\.cpanp, but never go to C:\Perl\bin C:\Perl\lib C:\Perl\site...