http://www.perlmonks.org?node_id=985649


in reply to Problem with Spreadsheet::XLSX..

Can't load '../perldir/auto/Compress/Raw/Zlib/Zlib.so' for module Compress::Raw::Zlib: ld.so.1: perl: fatal: ../perldir/auto/Compress/Raw/Zlib/Zlib.so: wrong ELF data format: ELFDATA2LSB

It seems that your Perl installation finds the wrong Zlib (or Compress::Zlib libraries. Potentially it finds the libraries for a different architecture.

I suggest consulting with your system administrator about the best way forward and recommend that you learn about how to properly install modules.

Manually copying files is not the proper way to install Perl modules. See local::lib, perlbrew and Yes, even you can use CPAN for approaches how to maintain your own Perl library separate from the libraries provided by the system.