benkasminbullock / gzip-faster

Perl module for gzip and gunzip
https://metacpan.org/release/Gzip-Faster
8 stars 2 forks source link

Cannot install Gzip::Faster : tests are failing #3

Closed peroumal1 closed 10 years ago

peroumal1 commented 10 years ago

Hello,

I just tried to install with cpanm Gzip::Faster on my server and the tests have failed.

My environment : perl 5.012002 built for x86_64-linux

The error I get :

 
Can't load '~/.cpanm/work/1409191837.20471/Gzip-Faster-0.09/blib/arch/auto/Gzip/Faster/Faster.so' for module Gzip::Faster: ~/.cpanm/work/1409191837.20471/Gzip-Faster-0.09/blib/arch/auto/Gzip/Faster/Faster.so: undefined symbol: inflate at ~/perl5/perlbrew/perls/perl-5.12.2/lib/5.12.2/x86_64-linux/DynaLoader.pm line 200.
 at t/gzip-faster.t line 7.

Can you help ?

Thanks !

benkasminbullock commented 10 years ago

The section

undefined symbol: inflate

looks like it's trying to dynamically link to zlib but cannot find it.

Please run the following:

 make clean
 perl Makefile.PL > make.log
 make >> make.log
 make test >> make.log

and post the file make.log here.

peroumal1 commented 10 years ago

So with the instructions you provided, here is the make.log :

 
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Gzip::Faster
Writing MYMETA.yml and MYMETA.json
cp lib/Gzip/Faster.pod blib/lib/Gzip/Faster.pod
cp lib/Gzip/Faster.pm blib/lib/Gzip/Faster.pm
Running Mkbootstrap for Gzip::Faster ()
chmod 644 Faster.bs
/home/eperoumalnaik/perl5/perlbrew/perls/perl-5.12.2/bin/perl /home/eperoumalnaik/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/ExtUtils/xsubpp  -typemap /home/eperoumalnaik/perl5/perlbrew/perls/perl-5.12.2/lib/5.12.2/ExtUtils/typemap  Faster.xs > Faster.xsc && mv Faster.xsc Faster.c
cc -c   -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -fPIC "-I/home/eperoumalnaik/perl5/perlbrew/perls/perl-5.12.2/lib/5.12.2/x86_64-linux/CORE"   Faster.c
rm -f blib/arch/auto/Gzip/Faster/Faster.so
cc  -shared -O2 -L/usr/local/lib -fstack-protector Faster.o  -o blib/arch/auto/Gzip/Faster/Faster.so    \
                \
chmod 755 blib/arch/auto/Gzip/Faster/Faster.so
/home/eperoumalnaik/perl5/perlbrew/perls/perl-5.12.2/bin/perl -MExtUtils::Command::MM -e 'cp_nonempty' -- Faster.bs blib/arch/auto/Gzip/Faster/Faster.bs 644
Manifying blib/man3/Gzip::Faster.3
Running Mkbootstrap for Gzip::Faster ()
chmod 644 Faster.bs
PERL_DL_NONLAZY=1 /home/eperoumalnaik/perl5/perlbrew/perls/perl-5.12.2/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/gzip-faster.t ..
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
Test Summary Report
-------------------
t/gzip-faster.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=1, Tests=0,  0 wallclock secs ( 0.06 usr  0.01 sys +  0.09 cusr  0.02 csys =  0.18 CPU)
Result: FAIL

I also noticed the following from STDERR (not in the make.log) when running 'perl Makefile.PL' :

 
Warning (mostly harmless): No library found for -lz

Could it be the source of what I am experiencing ? Maybe I'm missing a library in my environment ?

benkasminbullock commented 10 years ago

Could it be the source of what I am experiencing ? Maybe I'm missing a library in my environment ?

Yes, you seem to be missing libz (zlib). The module won't work without that. What Linux is it? If it's something like Ubuntu, you might need to do something like

 sudo apt-get install zlib1g-dev

See also http://ubuntuforums.org/showthread.php?t=1528204

Please could you let me know what happens.

benkasminbullock commented 10 years ago

My guess is that this was the problem. I've added a note to the module documentation in 79da4f1490cf8208632a7bc697a0a53cff996730, and I'm closing the issue. @peroumal1, please reopen the issue if this does not solve the problem.

peroumal1 commented 10 years ago

The library was already installed on my system, so it's not coming from here. I'm using Ubuntu 12.04.

benkasminbullock commented 10 years ago

The zlib library may be installed on your system, but is the above zlib1g-dev installed?

benkasminbullock commented 10 years ago

If you have no response, I'll assume the library was not installed and that was the problem.

peroumal1 commented 10 years ago

Hey, I was sleeping, that is why I had no response. Thanks anyway for your support, I'll be using another module. Le 28 août 2014 07:03, "Ben Bullock" notifications@github.com a écrit :

Closed #3 https://github.com/benkasminbullock/gzip-faster/issues/3.

— Reply to this email directly or view it on GitHub https://github.com/benkasminbullock/gzip-faster/issues/3#event-158340802 .

benkasminbullock commented 10 years ago

OK then. Good luck with the other module.