Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Net-SSH2 on Windows with Perl 5.14

by gepapa (Acolyte)
on Jan 25, 2012 at 16:11 UTC ( #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

Comment on Net-SSH2 on Windows with Perl 5.14
Replies are listed 'Best First'.
Re: Net-SSH2 on Windows with Perl 5.14
by dasgar (Curate) 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

Log In?
Username:
Password:

What's my password?
Create A New User
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? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2016-05-04 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?