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

Hello, I gotta start out by saying I'm new to perl. Just started using it a few days ago. My problem has come about because I'd like to convert a csv.txt to an Excel spread sheet. I added the Spreadsheet:WriteExcel module, but found that it recommeneded the Text:CSV_XS module. So, I downloaded the tar file and expanded it into a temp dir. The perl Makefile.pl command works find. However, when I run the nmake command a bunch of stuff appears like "cl -c -nologo -01 -MD -Zi -DNDEBUG..." following this huge string of what appears to be parameters a message says "cl" is not recognized as internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINNT\system32.exe' : return code '0x1' Stop. From this I can only guess that something may be missing from my PATH, but that's only a guess. If you can help me figure out what's wrong I'd appreciate it.
Regards

Title edit by tye

  • Comment on Text:CSV_XS module; nmake says "cl" is not recognized

Replies are listed 'Best First'.
Re: nmake
by tachyon (Chancellor) on Feb 26, 2003 at 21:32 UTC

    Short version type this at the prompt

    C:\>ppm install Text::CSV_XS

    and enjoy the magic. For the longer version see my A Guide to Installing Modules Text::CSV_XS contains XS (ie C source) code that requires that you have a C compiler installed. This is a given on unix but not on Win32. You can download one. Google for 'gcc Win32'

    Welcome to Perl - the Swiss Army Knife of programming languages. Happy hacking!

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      Thanks, Tachyon, for pointing me in the right direction. I need to download and install the latest gcc, to implement your suggestion. Should be able to do it sometime Thursday. Appreciate your help.