Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Net-SSH2 on Windows with Perl 5.14

by gepapa (Acolyte)
on Jan 25, 2012 at 16:11 UTC ( [id://949926]=perlquestion: print w/replies, xml ) Need Help??

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

Hi All, I haven't had much luck finding (or compiling myself) a PPM for Net-SSH2 on Windows with ActiveState 5.14. Does anyone have a link to a pre-built PPM, or some suggestions based off of your own adventure in compiling this? Thanks

Replies are listed 'Best First'.
Re: Net-SSH2 on Windows with Perl 5.14
by dasgar (Priest) on Jan 26, 2012 at 04:59 UTC

    I have not tried installing that particular module from CPAN myself, but I have found it to be fairly easy to install modules directly from CPAN into ActivePerl.

    Here's the steps:

    • Use PPM to install mingw and dmake, which are available from the default ActiveState repository.
    • If your system is behind a proxy, you'll need to add the http_proxy environment variable with the correct information to you Windows OS.
    • Now, from a command prompt, you can install modules directly from CPAN by using syntax like cpan install Net::SSH2

    Of course, it does look like that module you're interested in does require the libssh2 library to be installed first. Since I have not been through that process myself, I can't offer any pointers on how to get that library installed properly.

    If you're not strictly tied to using ActivePerl 5.14, Strawberry Perl 5.12.3.0 does have a version of Net::SSH2 already included, which was mentioned in another response. Also, Strawberry Perl does have a preview release of 5.14. I'm assuming that Net::SSH2 would be included, but can't say for sure.

Re: Net-SSH2 on Windows with Perl 5.14
by Anonymous Monk on Jan 26, 2012 at 01:48 UTC
Re: Net-SSH2 on Windows with Perl 5.14
by mendeepak (Scribe) on Jan 27, 2012 at 06:01 UTC

    From what you have written i could understand that you are not able to install the perl module Net::SSH2 in AcivePerl if that's the case simply open your comamd prompt and type  ppm install Net::SSH2 and hit enter..

      Thanks, Installed Net::SSH2 successfully with ppm install http://www.sisyphusion.tk/ppm/Net-SSH2.ppd command.

      Original poster asked how to build Net::SSH2 on Windows using Active State Perl 5.14. It is nice to have some few repositories holding pre-compiled ppds. But wouldn't it be even nicer to have an easy instruction how to build it on Active perl in general?

      Recently there has been a development release which has some essential features I would like to test like KeepAlive packets and unfortunately, I am not able to build it :-( Even not after trying to compile and studying the internet for several days now. Either I am the only one in the world who is trying or only I am dumb ...

      So, please: If there is any wisdom out there: Please share it!

      Deserately kind regards,
      Bogi

        Hi bogi, I am one of the maintainers.

        You are right, installing Net::SSH2 on ActiveState Perl on Windows is pretty difficult. A document explaining how to do it exists on the distribution but to be honest, I wasn't able to successfully follow it myself.

        So, anybody willing to volunteer to improve that would be really welcome in the project!!!

        BTW, the keep-alive functionality in libssh2 is still quite buggy, and if you use it you risk breaking the connection.

        But wouldn't it be even nicer to have an easy instruction how to build it on Active perl in general? ... So, please: If there is any wisdom out there: Please share it!

        If you encounter an error message, share the message, you have been wisdomed :D

      I used the same command but got an error that there is no package for Net::SSH2 on windows. I'm using activeperl as well
        I used the same command but got an error that there is no package for Net::SSH2 on windows

        I've been a bit slack about keeping my Net::SSH2 ppm packages up to date, but you can now install Net-SSH2-0.63 with:
        ppm install http://www.sisyphusion.tk/ppm/Net-SSH2.ppd --force
        (Please let me know if there's an issue with that.)

        These packages are built against libssh2-1.7.0 and openssl-1.0.1i (I think).
        Neither of those libraries are at the latest version, so I'm still being a bit slack.

        All tests passed.

        Cheers,
        Rob

        You should probably read the other responses in this thread.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://949926]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-03-28 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found