I did not know that there are instructions on the distribution itself, i.e. ActiveState Perl?! I only know about the BUILDING.WIN32 in the github repo (https://github.com/rkitover/net-ssh2), which, when following, end up in a perl 5.8.8 under MinGW ... Do you have a pointer for me of the ActiveState instructions?

Its the same file :) why do you want to compile everything from source? Most of the time that is just a hassle, so you go to looking for binaries from the devs/maintainers so you only have to compile the perl side of things

Easiest path (since strawberryperl folks already compiled the prerequisites)

Go to http://strawberryperl.com/releases.html and get a portablezip edition, unzip it, then

run "portableshell.bat"

download/unzip Net-SSH2... then chdir to that directory in the portableshell window

Then edit Makefile.PL essentially as per https://github.com/rkitover/net-ssh2/blob/master/BUILDING.WIN32 , set basic http://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html

$ENV{LIBRARY_PATH}='strawberry-perl-5.22.0.1-64bit-portable/c/lib'; $ENV{C_INCLUDE_PATH}='strawberry-perl-5.22.0.1-64bit-portable/c/includ +e';

so gcc... knows how to find libssh2.h/libssh2.a

Then run ....fullpathtoactivestate\bin\perl.exe Makefile.PL

The whole trick of it most of the time is simple "%PATH%" manipulation

Post details if you get stuck

links like these talk about it or link to links that talk about it... most of it is "sh configure ... make" or "perl Makefile.PL... make" ... A Guide To Installing Modules...copy/paste

Re: Error trying to install Image::Magick on Strawberry Perl, Re: Installing external libraries for perlbrew perl, link tree starts at Re^3: DBD::mysql fail install check (crontab debugging troubleshooting DYLD_LIBRARY_PATH ldd otool ...) , Re^2: Fuse and fuse_loop, Re: PPM: Cant find any packages that provides MinGW ?! (verbosity debugging tracing logging), Re: tool for managing perl in win32 (PATH/PERLLIB/INSTALL_BASE), Re: PPM: Cant find any packages that provides MinGW ?! (verbosity debugging tracing logging),

You probably want to read A Guide To Installing Modules, then MinGW/MSYS development environment - Setting up the base system, then install http://www.citrusperl.com/, and start installing libraries into your own prefix ...

sh configure --enable-static --enable-shared prefix=$HOME/yams make test make install

In reply to Re^5: Net-SSH2 on Windows with Perl 5.14 by Anonymous Monk
in thread Net-SSH2 on Windows with Perl 5.14 by gepapa

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.