ashok.g has asked for the wisdom of the Perl Monks concerning the following question:

Hi Folks,

Any idea why I am unable to install Net-SSH2-0.40 on Solaris 10?
bash-3.00# bash-3.00# perl Makefile.PL Subroutine checklibs redefined at inc/Module/Install/CheckLib.pm line +11. Subroutine assertlibs redefined at inc/Module/Install/CheckLib.pm line + 25. Subroutine _author_side redefined at inc/Module/Install/CheckLib.pm li +ne 39. The libssh2 library is required by this module. If you don't have it, + you can download it from http://www.libssh2.org; you may also need OpenSSL, wh +ich can be obtained from http://www.openssl.org. Debian: sudo aptitude install libssh2-1-dev OpenSUSE: sudo zypper in libssh2-1 libssh2-devel You can pass your libssh2 lib and include dirs on the command line. E. +g.: perl Makefile.PL lib=$HOME/libssh2/lib inc=$HOME/libssh2/include Use of uninitialized value in length at inc/Devel/CheckLib.pm line 338 +. Can't link/include 'ssh2'
Any Idea??

Thanks,
Ashok.

Replies are listed 'Best First'.
Re: Unable to install Net::SSH2 on Solaris10
by Anonymous Monk on Mar 07, 2012 at 02:32 UTC

    Any Idea??

    Read the error message, do what it says

      Any idea on how to link/include to ssh2?

        Any idea on how to link/include to ssh2?

        Yeah, read the error message, it tells you how

Re: Unable to install Net::SSH2 on Solaris10
by marto (Cardinal) on Mar 07, 2012 at 10:35 UTC

    The output of perl MakeFile.PL is fairly self explanatory, the modules README file further explains dependencies.

      I have installed all the prerequisites.. but still it says the same....

        Did you read this:

        You can pass your libssh2 lib and include dirs on the command line. E. +g.: perl Makefile.PL lib=$HOME/libssh2/lib inc=$HOME/libssh2/include

        If that fails, post your perl version (perl -V), Net::SSH2 version.

Re: Unable to install Net::SSH2 on Solaris10
by salva (Canon) on Mar 09, 2012 at 09:31 UTC