p5-RedisDB / RedisDB

Perl extension to access Redis
22 stars 11 forks source link

cpanm RedisDB 2.52 fails #29

Closed radleta closed 8 years ago

radleta commented 8 years ago

I started having the RedisDB 2.52 fail to install due to test failure. I tracked it down to a new version of Test::Simple 1.3 which had been released recently.

Here is an example of the error encountered during the failed install. There were multiple errors similar to this one in the cpamn log. Here is the entire build.log for reference.

# Testing RedisDB 2.52, Perl 5.018002, /usr/bin/perl
t/00-load.t ................ ok
Can't locate TB2/History.pm in @INC (you may need to install the TB2::History module) (@INC contains: /root/.cpanm/work/1462966470.24964/RedisDB-2.52/blib/lib /root/.cpanm/work/1462966470.24964/RedisDB-2.52/blib/arch /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /usr/share/perl5/Test/SharedFork.pm line 57.
BEGIN failed--compilation aborted at /usr/share/perl5/Test/SharedFork.pm line 125.
Compilation failed in require at /usr/share/perl5/Test/TCP.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Test/TCP.pm line 8.
Compilation failed in require at /root/.cpanm/work/1462966470.24964/RedisDB-2.52/blib/lib/Test/RedisDB.pm line 32.
BEGIN failed--compilation aborted at /root/.cpanm/work/1462966470.24964/RedisDB-2.52/blib/lib/Test/RedisDB.pm line 32.
Compilation failed in require at t/auth.t line 2.
BEGIN failed--compilation aborted at t/auth.t line 2.
t/auth.t ...................
Dubious, test returned 2 (wstat 512, 0x200)

The fix was to install the below prior to RedisDB.

cpanm EXODIST/Test-Simple-1.001014.tar.gz
trinitum commented 8 years ago

Works for me, also I don't get any fails from cpantesters. There's no any mentions of TB2 neither in RedisDB or Test-Simple-1.302015. I see that the error comes initially from Test::SharedFork, perhaps you should try upgrading it?