chris- has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I tried to install CGI::Application::Plugin::Authentication, but getting lots of errors. On Deb 4.0:
t/01_basic..................ok 1/9Undefined subroutine &Scalar::Util:: +weaken called at /root/.cpan/build/CGI-Application-Plugin-Authenticat +ion-0.12/blib/lib/CGI/Application/Plugin/Authentication.pm line 1543. # Looks like you planned 9 tests but only ran 4. # Looks like your test died just after 4. t/01_basic..................dubious Test returned status 255 (wstat 65280, 0xff00)
On Suse linux 10.3:
t/02_config.................NOK 31 # Failed test 'config dies when RENDER_LOGIN is passed a hashref' # at t/02_config.t line 93. # expecting: Regexp ((?-xism:parameter RENDER_LOGIN is not a coderef)) # found: Bizarre copy of ARRAY in sassign at /usr/share/perl/5.8/Carp/ +Heavy.pm line 39. # Looks like you failed 1 test of 69. t/02_config.................dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 31 Failed 1/69 tests, 98.55% okay
Any ideas what could be done? Thanks, Chris

Replies are listed 'Best First'.
Re: installation of CGI::Application::Plugin::Authentication failed
by moritz (Cardinal) on Oct 09, 2008 at 13:52 UTC
    Hi, I tried to install CGI::Application::Plugin::Authentication, but getting lots of errors. On Deb 4.0:

    On Debian you can use the pre-packed module:

    aptitude install libcgi-application-plugins-perl
      Debian worked with aptitude.
        If I try with cpan, i get now:
        t/02_config.................NOK 31 # Failed test 'config dies when RENDER_LOGIN is passed a hashref' # at t/02_config.t line 93. # expecting: Regexp ((?-xism:parameter RENDER_LOGIN is not a coderef)) # found: Bizarre copy of ARRAY in sassign at /usr/share/perl/5.8/Carp/ +Heavy.pm line 39. # Looks like you failed 1 test of 69. t/02_config.................dubious Test returned status 1 (wstat 256, 0x100)
        Is this an error of Plugin::Authentication or my fault?
Re: installation of CGI::Application::Plugin::Authentication failed
by Anonymous Monk on Oct 09, 2008 at 18:32 UTC
    Install a Scalar::Util which provides weaken
      cpan> install Scalar::Util
      Scalar::Util is up to date.
      ??
      Same errors as before on Suse 10.3
        perl Makefile.PL -xs make make test perl -Mblib -MScalar::Util=weaken -e weaken() make install perl -Mblib -MScalar::Util=weaken -e weaken()