in reply to Cpan install gets stuck installing Net OpenSSH ?

I see:
t/1_run.t .... skipped: OpenSSH 4.1 or later required


You obviously don't have OpenSSH 4.1 or later, but the Net-OpenSSH-0.70 README says that OpenSSH 4.1 or later is required, and recommends OpenSSH 5.x.

I therefore suggest your problem is that your version of OpenSSH is too old (and unsupported by Net-OpenSSH-0.70).
However, I don't actually know if this is the case - but the first thing I would try is to update the OpenSSH installation.

Cheers,
Rob
  • Comment on Re: Cpan install gets stuck installing Net OpenSSH ?

Replies are listed 'Best First'.
Re^2: Cpan install gets stuck installing Net OpenSSH ?
by salva (Canon) on Mar 11, 2016 at 08:32 UTC
    Actually, that looks like a Solaris box. The ssh client bundled is an old fork of OpenSSH (SUN ssh, well, now probably Oracle SSH) which is not supported by Net::OpenSSH.

    Packages for the real OpenSSH may be available from Oracle or 3th party repositories.

      I got farther this time. No errors about missing or wrong versions of OpenSSH. But I am still getting stuck at this: Password: t/1_run.t .... skipped: Unable to establish SSH connection to localhost! t/quoting.t .. Use of uninitialized value $ENV{"LANG"} in pattern match (m//) at t/quoting.t line 17. I'm not sure what/where this env value is located or how to fix it.

        See perlvar on %ENV. It seens that in your environment, the environment variable LANG is not set. But that is just a warning and not really a cause for a failing test. As a workaround, you could run export LANG=C.

        What is the real output you get when running make test?

Re^2: Cpan install gets stuck installing Net OpenSSH ?
by jtzako (Sexton) on Mar 11, 2016 at 17:13 UTC
    It appears this is the case. We have the sun version of OpenSSL and SSH. I'm looking into getting those upgraded.
Re^2: Cpan install gets stuck installing Net OpenSSH ?
by jtzako (Sexton) on Mar 11, 2016 at 20:45 UTC
    OK, so now that I got the ENV variable sorted out, it is still getting stuck at "t/quoting.t". However, it is not giving me any error now, it just sits there until it eventually times out (takes 1hr+ for some reason).

      The next step is to run the hanging test in isolation to see at which test it stalls (and maybe even see why):

      cpan CPAN> look Net::OpenSSH $ perl Makefile.PL $ make $ perl -Ilib -w t/quoting.t
        Still seems to get stuck, and no error so far. Its been running for ~45 minutes now and no progress.
        -bash-3.2$ sudo cpan Password: Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.9402) Enter 'h' for help. cpan[1]> look Net::OpenSSH CPAN: Storable loaded ok (v2.20) Going to read '/usr/local/home/myuser/.cpan/Metadata' Database was generated on Fri, 11 Mar 2016 19:17:02 GMT Running look for module 'Net::OpenSSH' Trying to open a subshell in the build directory... CPAN: Data::Dumper loaded ok (v2.124) 'YAML' not installed, falling back to Data::Dumper and Storable to rea +d prefs '/usr/local/home/myuser/.cpan/prefs' CPAN: Digest::SHA loaded ok (v5.47) CPAN: Compress::Zlib loaded ok (v2.02) Checksum for /usr/local/home/myuser/.cpan/sources/authors/id/S/SA/SALV +A/Net-OpenSSH-0.70.tar.gz ok Scanning cache /usr/local/home/myuser/.cpan/build for sizes ...................................................................... +......DONE CPAN: Archive::Tar loaded ok (v1.52) Net-OpenSSH-0.70/ Net-OpenSSH-0.70/sample/ Net-OpenSSH-0.70/sample/mod_perl_openssh.pm Net-OpenSSH-0.70/sample/login_handler.pl Net-OpenSSH-0.70/sample/autosudo.pl Net-OpenSSH-0.70/sample/git_ssh_through_mux.pl Net-OpenSSH-0.70/sample/change_passwd.pl Net-OpenSSH-0.70/sample/git_with_password.pl Net-OpenSSH-0.70/sample/net-telnet.pl Net-OpenSSH-0.70/sample/expect.pl Net-OpenSSH-0.70/sample/password_from_data.pl Net-OpenSSH-0.70/sample/sshfs_mount.pl Net-OpenSSH-0.70/sample/keep_in_sync.pl Net-OpenSSH-0.70/Changes Net-OpenSSH-0.70/lib/ Net-OpenSSH-0.70/lib/Net/ Net-OpenSSH-0.70/lib/Net/OpenSSH/ Net-OpenSSH-0.70/lib/Net/OpenSSH/ShellQuoter/ Net-OpenSSH-0.70/lib/Net/OpenSSH/ShellQuoter/MSCmd.pm Net-OpenSSH-0.70/lib/Net/OpenSSH/ShellQuoter/fish.pm Net-OpenSSH-0.70/lib/Net/OpenSSH/ShellQuoter/POSIX.pm Net-OpenSSH-0.70/lib/Net/OpenSSH/ShellQuoter/Chain.pm Net-OpenSSH-0.70/lib/Net/OpenSSH/ShellQuoter/csh.pm Net-OpenSSH-0.70/lib/Net/OpenSSH/ShellQuoter/MSWin.pm Net-OpenSSH-0.70/lib/Net/OpenSSH/ObjectRemote.pm Net-OpenSSH-0.70/lib/Net/OpenSSH/Constants.pm Net-OpenSSH-0.70/lib/Net/OpenSSH/ShellQuoter.pm Net-OpenSSH-0.70/lib/Net/OpenSSH/ModuleLoader.pm Net-OpenSSH-0.70/lib/Net/OpenSSH/OSTracer.pm Net-OpenSSH-0.70/lib/Net/OpenSSH/ConnectionCache.pm Net-OpenSSH-0.70/lib/Net/OpenSSH/SSH.pm Net-OpenSSH-0.70/lib/Net/OpenSSH.pm Net-OpenSSH-0.70/t/ Net-OpenSSH-0.70/t/common.pm Net-OpenSSH-0.70/t/known_hosts Net-OpenSSH-0.70/t/uri.t Net-OpenSSH-0.70/t/test_server_key.pub Net-OpenSSH-0.70/t/test_user_key Net-OpenSSH-0.70/t/test_user_key.pub Net-OpenSSH-0.70/t/1_run.t Net-OpenSSH-0.70/t/test_server_key Net-OpenSSH-0.70/t/quoting.t Net-OpenSSH-0.70/patches/ Net-OpenSSH-0.70/patches/openssh-fwd-stdio-to-streamlocal-1.patch Net-OpenSSH-0.70/Makefile.PL Net-OpenSSH-0.70/README Net-OpenSSH-0.70/MANIFEST Net-OpenSSH-0.70/META.yml Net-OpenSSH-0.70/META.json CPAN: File::Temp loaded ok (v0.22) Working directory is /usr/local/home/myuser/.cpan/build/Net-OpenSSH-0. +70-ARY6NC # perl Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Net::OpenSSH Writing MYMETA.yml and MYMETA.json # make cp lib/Net/OpenSSH/ConnectionCache.pm blib/lib/Net/OpenSSH/ConnectionC +ache.pm cp lib/Net/OpenSSH/ShellQuoter/fish.pm blib/lib/Net/OpenSSH/ShellQuote +r/fish.pm cp lib/Net/OpenSSH/ShellQuoter/POSIX.pm blib/lib/Net/OpenSSH/ShellQuot +er/POSIX.pm cp lib/Net/OpenSSH/ShellQuoter.pm blib/lib/Net/OpenSSH/ShellQuoter.pm cp lib/Net/OpenSSH/ModuleLoader.pm blib/lib/Net/OpenSSH/ModuleLoader.p +m cp lib/Net/OpenSSH/ShellQuoter/Chain.pm blib/lib/Net/OpenSSH/ShellQuot +er/Chain.pm cp lib/Net/OpenSSH/Constants.pm blib/lib/Net/OpenSSH/Constants.pm cp lib/Net/OpenSSH/SSH.pm blib/lib/Net/OpenSSH/SSH.pm cp lib/Net/OpenSSH/ShellQuoter/MSWin.pm blib/lib/Net/OpenSSH/ShellQuot +er/MSWin.pm cp lib/Net/OpenSSH/ShellQuoter/MSCmd.pm blib/lib/Net/OpenSSH/ShellQuot +er/MSCmd.pm cp lib/Net/OpenSSH.pm blib/lib/Net/OpenSSH.pm cp lib/Net/OpenSSH/OSTracer.pm blib/lib/Net/OpenSSH/OSTracer.pm cp lib/Net/OpenSSH/ShellQuoter/csh.pm blib/lib/Net/OpenSSH/ShellQuoter +/csh.pm cp lib/Net/OpenSSH/ObjectRemote.pm blib/lib/Net/OpenSSH/ObjectRemote.p +m Manifying 7 pod documents # perl -Ilib -w t/quoting.t