How to link the library to compile / install the Perl module manually?

I want to compile / install the Perl module, which depends on a library that is not in Strawberry Perl 5.12. I used Strawberry in a Windows window to install the module (Net-SSH2). The installation could not be completed because it requires a library (libssh2). My problem is similar to this guy http://www.perlmonks.org/bare/?node_id=814455 . But I can’t use this solution because it doesn’t apply to my version of Perl and more importantly, I have a very limited Internet connection.

I downloaded the libssh2 library, but I don’t know how to specify the include path in Makefile.PL, so I can run:

perl Makefile.PL
make 
make install

I appreciate any help or pointer.

+3
source share
2 answers
+1
source

Edit Makefile.PLand add or edit the parameters INCand / or LIBSin the call WriteMakefile. See ExtUtils::MakeMakerdocs for the expected format. They will be passed to the compiler and linker.

+2
source

Source: https://habr.com/ru/post/1756272/


All Articles