Hi, Hoping somebody can help me please, because I'm not very familiar with installing via CPAN. My machine is running Fedora 15 (64-bit), and I'm trying to install Net:SSH2 via CPAN, but I am running into problems (as shown by the output below). I resolved one previous issue, with it being unable to locate the C compiler, but I do not know how to progress further, from where I am now. It seems to start failing at the "Can't link/include 'libssh2.h', 'ssh2'" line. Perl version is v5.12.4.(64-bit).

cpan[1]> install Net::SSH2 Going to read '/root/.cpan/Metadata' Database was generated on Mon, 29 Aug 2011 05:27:45 GMT Running install for module 'Net::SSH2' Running make for R/RK/RKITOVER/Net-SSH2-0.39.tar.gz Checksum for /root/.cpan/sources/authors/id/R/RK/RKITOVER/Net-SSH2-0.3 +9.tar.gz ok Scanning cache /root/.cpan/build for sizes ...................................................................... +......DONE CPAN.pm: Going to build R/RK/RKITOVER/Net-SSH2-0.39.tar.gz 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 Can't link/include 'libssh2.h', 'ssh2' No 'Makefile' created RKITOVER/Net-SSH2-0.39.tar.gz /usr/bin/perl Makefile.PL -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: RKITOVER/Net-SSH2-0.39.tar.gz : writemakefile NO -- No 'Makefile' c +reated

With regards to libssh2, then I have already checked to make sure it is installed, per below:

yum install libssh2 Loaded plugins: langpacks, presto, refresh-packagekit Setting up Install Process Package libssh2-1.2.7-1.fc15.x86_64 already installed and latest versi +on Nothing to do

In reply to Need Help Installing Net::SSH2 by DanielSpaniel

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.