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

Hi perlmonks,
iam unable to install libssh2 in windows.
Can i get binaries for Net::SSH2 or instalation document for windows.

Any one working Net::SSH2 in windows.Because it having lot of dependences.
  • Comment on Dependences to install Net::SSH2 for windows

Replies are listed 'Best First'.
Re: Dependences to install Net::SSH2 for windows
by andyford (Curate) on Nov 01, 2006 at 18:13 UTC
    This post seems particularly relevant: Re: Net::SSH2 for installing windows.

    That being said, you might just get on with it by changing your approach and just call a normal ssh binary with system instead of using the module.
    It should be pretty easy to get a basic ssh install on Windows, no?

    andyford
    or non-Perl: Andy Ford

Re: Dependences to install Net::SSH2 for windows
by Khen1950fx (Canon) on Nov 01, 2006 at 22:25 UTC
    First, you want to make sure that you have the current version of OpenSSL

    Next, see the changes file for Net::SSH2. The author says that that libssh2 0.13 and 0.14 don't pass module tests anymore and recommends using 0.12 or lower if you have problems with 0.13 0r 0.14. See: Net-SSH2 Changes

    Next, get libssh2-0.12

    When installing libssh2, make sure you put --with-openssl=<path-to-openssl> on the configure line.

    Next, get zlib

    As for Net::SSH2, you'll need to download and install it manually. See: Net-SSH2

Re: Dependences to install Net::SSH2 for windows
by syphilis (Archbishop) on Nov 01, 2006 at 23:55 UTC
    Hi,
    There are Net-SSH-Perl-1.30 and Net-SSH-W32Perl-0.05 ppm packages available at the uwinnipeg rep. The latter (Win32 version) supports SSH2 only - I don't know whether the former supports SSH1 or SSH2 or both.

    ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH-Perl.ppd
    or
    ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH-W32Perl.ppd

    There will be some dependencies that should be installed automatically by the ppm installation process - but for that automation to work you'll probably have to add the uwinnipeg rep to your list of repositories (as ppm's of some of those dependencies exist only in the uwinnipeg rep).

    Cheers,
    Rob
      Hi,
      Can we hold the session object longer time in advanced Net::SSH::W32perl
      bcoz i tried Net::SSH::W32perl(0.04).It is working ,i can't hold the channel object.but Net::SSH2 we can hold i tested in Linux.
      but iam unable to install windows for Net::SSH2
        I have just created a windows ppm for Net::SSH2-0.09 (built against a static libssh2). It built and tested fine - though I don't have a secure shell against which to run the interactive testing.

        Anyway, if you want to try it out:

        ppm install http://members.optusnet.com.au/~sisyphus1/ppms/Net-SSH2.ppd

        Cheers,
        Rob