venkyPerl has asked for the wisdom of the Perl Monks concerning the following question:
Hi All, I am new to perl and I am stuck on what seems to be a very basic thing. I had to work on a issue which deals with reading of Excel files in Perl. Currently, the application uses Spreadsheet::ParseExcel and reads Excel files with xls etension only (97 2003 format) but going forward, we have to read files with xlsx extension also. I studied that for doing this, we have to use Spreadsheet::XLSX package. But it seems i did not install the package correctly. I downloaded the tar files, unzip them n copied to my perllib directory. and when i tried testing my perl script, it gave me the following error -
Can't load '../perldir/auto/Compress/Raw/Zlib/Zlib.so' for module Comp +ress::Raw::Zlib: ld.so.1: perl: fatal: ../perldir/auto/Compress/Raw/Z +lib/Zlib.so: wrong ELF data format: ELFDATA2LSB at /usr/perl5/5.8.4/l +ib/sun4-solaris-64int/DynaLoader.pm line 230. at ../perldir/Archive/Zip.pm line 9 Compilation failed in require at ../perldir/Archive/Zip.pm line 9. BEGIN failed--compilation aborted at ../perldir/Archive/Zip.pm line 9. Compilation failed in require at ../perldir/Spreadsheet/XLSX.pm line 1 +1. BEGIN failed--compilation aborted at ../perldir/Spreadsheet/XLSX.pm li +ne 11. Compilation failed in require at excel2txt_venky.pl line 7. BEGIN failed--compilation aborted at excel2txt_venky.pl line 7.
Though the file - Zlib.so is available in the directory - ../perldir/auto/Compress/Raw/Zlib/ with all the permissions.
I am doing this on Solaris 10 with Perl, v5.8.4.
Please let me know where am I wrong and how to work on this. Quick reply is appreciated.
Thank you everyone.
Venky
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Problem with Spreadsheet::XLSX..
by Corion (Patriarch) on Aug 06, 2012 at 10:27 UTC | |
by venkyPerl (Initiate) on Aug 06, 2012 at 10:48 UTC | |
by Corion (Patriarch) on Aug 06, 2012 at 10:51 UTC | |
Re: Problem with Spreadsheet::XLSX..
by marto (Cardinal) on Aug 06, 2012 at 10:52 UTC | |
by venkyPerl (Initiate) on Aug 06, 2012 at 11:01 UTC | |
by venkyPerl (Initiate) on Aug 06, 2012 at 11:06 UTC | |
by marto (Cardinal) on Aug 06, 2012 at 11:19 UTC | |
by venkyPerl (Initiate) on Aug 06, 2012 at 11:39 UTC | |
|