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

Hi monks, I am unable to install Net::SSH::Perl module i tried using fforce , force cpan commands but it's not getting installed

error i found:

t/03-packet.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 10 tests but ran 0. Files=12, Tests=106, 2 wallclock secs ( 0.09 usr + 0.00 sys = 0.09 +CPU) Result: FAIL Failed 1/12 test programs. 0/106 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' SCHWIGON/Net-SSH-Perl-1.36.tar.gz C:\strawberry\c\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports SCHWIGON/Net-SSH-Perl-1.36.tar.gz Running make install Appending installation info to C:\strawberry\perl\lib/perllocal.pod SCHWIGON/Net-SSH-Perl-1.36.tar.gz C:\strawberry\c\bin\dmake.exe install UNINST=1 -- OK Stopping: 'install' failed for 'Net::SSH::Perl'. Failed during this command: SCHWIGON/Net-SSH-Perl-1.36.tar.gz : make_test FAILED but f +ailure ign ored because 'force' in effect

Replies are listed 'Best First'.
Re: Not able to install Net::SSH::Perl module
by Corion (Patriarch) on Nov 19, 2013 at 07:43 UTC

    The interesting parts of the error message are further up. Please show the output of the test t/03-packet.t. It seems troublesome.

    The easiest way to get the (full) test output of the failing test is the following sequence:

    C:\>cpan cpan> look Net::SSH::Perl C:\...\Net-SSH-Perl> dmake C:\...\Net-SSH-Perl> perl -Ilib -w t\03-packet.t
Re: Not able to install Net::SSH::Perl module
by dasgar (Priest) on Nov 19, 2013 at 12:03 UTC

    I tried this on my system running DWIM Perl (based on Strawberry Perl 5.14.2 32-bit) and I also hit an issue on the same test. Here's part of the messages I saw on my system:

    t/03-packet.t ...... Use of uninitialized value $ENV{"HOME"} in concat +enation (. ) or string at C:\Dwimperl\cpan\build\Net-SSH-Perl-1.36-f4Rl_I\blib\li +b/Net/SSH/ Perl.pm line 111. The getpwuid function is unimplemented at C:\Dwimperl\cpan\build\Net-S +SH-Perl-1.36-f4Rl_I\blib\lib/Net/SSH/Perl/SSH1.pm line 30. # Looks like your test exited with 255 before it could output anything +. t/03-packet.t ...... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 10/10 subtests

    After checking out the link from Corion's response, the following bug report seems to deal with the $ENV{"HOME"} issue on Windows that I'm seeing. That might have some useful and relevant information for you.

    https://rt.cpan.org/Public/Bug/Display.html?id=49820