At 15:59 Uhr -0700 15.05.2001, ehughes wrote:
>Hi All,
>
>I am certain this is in an FAQ somewhere, so if someone could point me the
>way, I would be grateful. Anyway, I downloaded Spreadsheet::WriteExcel from
>CPAN. When I checked a test program I received the following message:
>
># Illegal character \012 (carriage return).
>File 'Cyberia:Applications (Mac OS 9):MacPerl
>Ÿ:lib:Spreadsheet:WriteExcel.pm'; Line 1
># (Maybe you didn't strip carriage returns after a network transfer?)
># BEGIN failed--compilation aborted.
>File 'Cyberia:spread_test'; Line 3
>
>I didn't have this problem with version 0.25, but now have it with version
>0.31. So, what should I do next.
>
>Elton
>
>=========================================================================
>NOVA 505 W. Olive Ave. Suite 550
>Elton Hughes (Information Technology) Sunnyvale CA 94086
>Phone: 408-730-7235 Fax: 408-730-7643
>-------------------------------------------------------------------------
Elton,
did you install the module manually in your :MacPerlŸ:lib: folder, without line ending
conversion? Normally, additional modules get installed in the :MacPerlŸ:site_perl:
folder, so I wonder what you've done.
I've read your message concerning the CPAN-shell, but don't know what's going wrong.
However, here's a way for installation that almost ever works, even for not so
well-behaved modules:
- Download 'Spreadsheet-WriteExcel-0.31.tar.gz' manually from CPAN. Note that the
archive's filename gets truncated to 'Spreadsheet-WriteExcel-0.31.tar', because it's
longer than 31 characters (and that may cause problems).
- Use StuffIt Expander to expand and extract the module. Be sure that you've
configured Expander to convert line endings from Unix (LF) to Mac OS (CR): Preferences
-> Cross Platform -> Convert text files to Macintosh format => When a file is known
to contain text.
- Drop the expanded folder on the installme.plx droplet (it's part of Chris Nandor's
cpan-mac 0.50 module). This should install the module properly.
In case of Spreadsheet-WriteExcel-0.31, ignore the following message:
Checking if your kit is complete...
Warning: the following files are missing in your kit:
Please inform the author.
'ABSTRACT' is not a known MakeMaker parameter name.
'AUTHOR' is not a known MakeMaker parameter name.
Let me/us know if that works for you.
Best regards,
--Thomas
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com