bsshetty17 has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I have installed strawberry perl version 5.24.0.1. I am trying to install few CPAN modules like Net::SFTP etc with command "cpan Net::SFTP". when i try this .t exits at dmake with error code 129.
I am using windows server 2008 r2 deployed in a vm environment. and 64bit perl is installed. Please help in resolving the problem.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: cpan module installation in strawberry perl
by marto (Cardinal) on Oct 10, 2016 at 10:21 UTC | |
You'll need to provide more information, an extract of the cpan output where the failure is occurring would be a good start. Please read and understand How do I post a question effectively? and PerlMonks for the Absolute Beginner. | [reply] [d/l] |
by Phenomanan (Monk) on Oct 10, 2016 at 13:00 UTC | |
[reply] | |
Re: cpan module installation in strawberry perl
by syphilis (Archbishop) on Oct 11, 2016 at 06:18 UTC | |
Instead use Net::SFTP::Foreign (with the Net::SSH2 backend). It should install cleanly and easily on Strawberry Perl: It uses the libssh2 C library (which ships with Strawberry Perl). I use Net::SFTP::Foreign on Windows quite a bit and find it to be very good. Cheers, Rob | [reply] [d/l] |
Re: cpan module installation in strawberry perl
by dasgar (Priest) on Oct 12, 2016 at 04:26 UTC | |
It would have been more helpful if you could have provided more text from the error message. When I tried installing Net::SFTP on a system using portable Strawberry Perl, my attempt failed at the same point as the post from Cow1337killr. In particular, I got something similar to this excerpt from Cow1337killr's post:
Doing a little checking on the Crypt::Curve25519 module (which appears to be the source of the issue), there doesn't seem to be any tests that passed in the mswin32 column of its CPAN Testers matrix. Also, it looks like someone has already filed a bug report on this issue - and for whatever reason, there doesn't seem to be a response yet from the module's author. If you're not willing to wait for the module's author to fix this issue and are not interested in figuring out a patch for this issue yourself, then it looks like using Net::SFTP may not be an option. Of course, syphilis shared an alternative solution in his post. | [reply] [d/l] |
by syphilis (Archbishop) on Oct 12, 2016 at 17:22 UTC | |
The problem lies with the symbol "OUT". Consider this C program: If you attempt to compile that program on Windows, you get: I think that's a pretty good indication that OUT is a special symbol on Windows. The program builds fine if windows.h is not included but, of course, windows.h is included for the xs file. Simplest solution would be to replace the symbol "OUT" with something that's not going to clash. (I'll add that to the bug report unless someone else beats me to it.) Cheers, Rob | [reply] [d/l] [select] |
Re: cpan module installation in strawberry perl
by Cow1337killr (Monk) on Oct 11, 2016 at 00:52 UTC | |
I was unable to install the module.
| [reply] [d/l] |
by Aldebaran (Curate) on Oct 12, 2016 at 02:06 UTC | |
Your forward progress seems to be stopped right now at a place that's not far from the beginning. When I see C:\path to my folder\Perl scripts>with spaces in the path, I think it's just waiting to break. I might start over without spaces. | [reply] [d/l] |
by Cow1337killr (Monk) on Oct 12, 2016 at 20:52 UTC | |
I edited the output from the Windows command line window using Notepad++, replacing my real path with this made-up path name. Everyone's path is different. As long as my machine knows where Strawberry Perl is, it matters not what particular path I execute my scripts from, as long as they can find the files that they need. In this case, it is just an installation. I showed my attempt to install this module, because the original author of this thread was using Strawberry Perl and so do I, so our installations are virtually the same. In fact, I used Sandboxie, so as not to affect my real installation. | [reply] |
Re: cpan module installation in strawberry perl
by Aldebaran (Curate) on Oct 11, 2016 at 04:44 UTC | |
I see a couple things that might not be working here, so let me say that it's really important in Perl to get every keystroke correct, including capitalization. I use strawberry perl, and to invoke cpan, I simply type cpanNo 'sudo' here. Many treatments show that. To install a module: install Net::SFTPThere's a lot of SFTP stuff of cpan that is out-of-date. Read what they recommend as newest. Hope this helps | [reply] [d/l] [select] |
Re: cpan module installation in strawberry perl
by bsshetty17 (Acolyte) on Oct 12, 2016 at 10:31 UTC | |
Thanks everyone for your time/suggestions. | [reply] |