pmqs / Archive-Zip-SimpleZip

Perl5 interface to read/write Zip files
4 stars 5 forks source link

Broken: missing lzma.h #18

Closed Vlado-99 closed 1 year ago

Vlado-99 commented 3 years ago

Can not install from CPAN because of missing lzma.h during compilation. Version 0.039.

pmqs commented 3 years ago

Thanks for the report @Vlado-99

The module is supposed to use LZMA , if it is available. For that to happen you need to have IO::Compress::Lzma & Compress::Raw::Lzma already installed.

Could you post a log of the build process please? Include as much detail as possible.

Vlado-99 commented 3 years ago

Manually copied content of terminal window:

cpan.log

Problem begins on line 863. Running in Cygwin x64 under Windows 7 64bit. **

Tried to install IO::Compress::Lzma - log is here: IO-Compress-lzma.txt

Next tried to install Compress::Raw::Lzma:

cpan[4]> install Compress::Raw::Lzma
Running install for module 'Compress::Raw::Lzma'
  PMQS/Compress-Raw-Lzma-2.101.tar.gz
  Has already been unwrapped into directory /home/vlado/.cpan/build/Compress-Raw-Lzma-2.101-1
  PMQS/Compress-Raw-Lzma-2.101.tar.gz
  Has already been prepared
  PMQS/Compress-Raw-Lzma-2.101.tar.gz
  Could not make: Unknown error

** I have tried Raspbian too - no success.

Vlado-99 commented 3 years ago

There is nothing wrong with SimpleUnzip code itself: I borrowed your code from CPAN, made little tweaks (changed namespace), and it works perfectly. I work with ZIP archives containing many small files I need to process. I use extracting them one by one to memory buffer.

Your code helped to me a much. Thanks you!

pmqs commented 3 years ago

Good to hear you found a way around the issue and thanks for the kind words.