Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: cpan module installation in strawberry perl

by dasgar (Priest)
on Oct 12, 2016 at 04:26 UTC ( [id://1173790]=note: print w/replies, xml ) Need Help??


in reply to cpan module installation in strawberry perl

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:

dmake.exe: Error code 129, while making 'Curve25519.o' AJGB/Crypt-Curve25519-0.05.tar.gz C:\STRAWB~1\c\bin\dmake.exe -- NOT OK Stopping: 'install' failed for 'Crypt::Curve25519'. Failed during this command: AJGB/Crypt-Curve25519-0.05.tar.gz : make NO

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.

Replies are listed 'Best First'.
Re^2: cpan module installation in strawberry perl
by syphilis (Archbishop) on Oct 12, 2016 at 17:22 UTC
    dmake.exe: Error code 129, while making 'Curve25519.o'

    The problem lies with the symbol "OUT".
    Consider this C program:
    #include <windows.h> int main(void) { int OUT = 7; return 0; }
    If you attempt to compile that program on Windows, you get:
    try.c: In function 'main': try.c:4:10: error: expected identifier or '(' before '=' token int OUT = 7; ^
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1173790]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-19 13:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found