in reply to Re^4: Net-SSH2 on Windows with Perl 5.14
in thread Net-SSH2 on Windows with Perl 5.14
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
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Net-SSH2 on Windows with Perl 5.14
by bogi (Initiate) on Sep 14, 2015 at 23:26 UTC | |
by syphilis (Archbishop) on Sep 15, 2015 at 01:01 UTC | |
by Anonymous Monk on Sep 15, 2015 at 00:41 UTC |