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.
| [reply] [Watch: Dir/Any] [d/l] [select] |
Re: Net-SSH2 on Windows with Perl 5.14
by Anonymous Monk on Jan 26, 2012 at 01:48 UTC
|
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] |
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..
| [reply] [Watch: Dir/Any] [d/l] |
|
Thanks, Installed Net::SSH2 successfully with
ppm install http://www.sisyphusion.tk/ppm/Net-SSH2.ppd
command.
| [reply] [Watch: Dir/Any] |
|
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
| [reply] [Watch: Dir/Any] |
|
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.
| [reply] [Watch: Dir/Any] |
|
|
|
|
|
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
| [reply] [Watch: Dir/Any] |
|
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
| [reply] [Watch: Dir/Any] |
|
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 | [reply] [Watch: Dir/Any] [d/l] |
|
| [reply] [Watch: Dir/Any] |