I've spent some time trying to install the Net::SSH2, but I keep getting this problem - not sure what's going on here, and google wasn't much help for me - any help please?
cpan> install Net::SSH2 CPAN: Storable loaded ok Going to read /home/darius/.cpan/Metadata Database was generated on Fri, 18 Jan 2008 05:38:15 GMT Running install for module Net::SSH2 Running make for D/DB/DBROBINS/Net-SSH2-0.18.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for /home/darius/.cpan/sources/authors/id/D/DB/DBROBINS/Net-S +SH2-0.18.tar.gz ok Scanning cache /home/darius/.cpan/build for sizes Net-SSH2-0.18/ Net-SSH2-0.18/META.yml Net-SSH2-0.18/t/ Net-SSH2-0.18/t/Net-SSH2.t Net-SSH2-0.18/SSH2.xs Net-SSH2-0.18/README Net-SSH2-0.18/example/ Net-SSH2-0.18/example/read.pl Net-SSH2-0.18/MANIFEST Net-SSH2-0.18/typemap Net-SSH2-0.18/ppport.h Net-SSH2-0.18/fallback/ Net-SSH2-0.18/fallback/const-c.inc Net-SSH2-0.18/fallback/const-xs.inc Net-SSH2-0.18/Changes Net-SSH2-0.18/Makefile.PL Net-SSH2-0.18/lib/ Net-SSH2-0.18/lib/Net/ Net-SSH2-0.18/lib/Net/SSH2/ Net-SSH2-0.18/lib/Net/SSH2/Dir.pm Net-SSH2-0.18/lib/Net/SSH2/Listener.pm Net-SSH2-0.18/lib/Net/SSH2/SFTP.pm Net-SSH2-0.18/lib/Net/SSH2/Channel.pm Net-SSH2-0.18/lib/Net/SSH2/PublicKey.pm Net-SSH2-0.18/lib/Net/SSH2/File.pm Net-SSH2-0.18/lib/Net/SSH2.pm Removing previously used /home/darius/.cpan/build/Net-SSH2-0.18 CPAN.pm: Going to build D/DB/DBROBINS/Net-SSH2-0.18.tar.gz Net::SSH2: using library -L/usr/lib -lssh2 and include path -I/usr/inc +lude. Checking if your kit is complete... Looks good Writing Makefile for Net::SSH2 cp lib/Net/SSH2/File.pm blib/lib/Net/SSH2/File.pm cp lib/Net/SSH2/Dir.pm blib/lib/Net/SSH2/Dir.pm cp lib/Net/SSH2/PublicKey.pm blib/lib/Net/SSH2/PublicKey.pm cp lib/Net/SSH2/SFTP.pm blib/lib/Net/SSH2/SFTP.pm cp lib/Net/SSH2/Listener.pm blib/lib/Net/SSH2/Listener.pm cp lib/Net/SSH2/Channel.pm blib/lib/Net/SSH2/Channel.pm cp lib/Net/SSH2.pm blib/lib/Net/SSH2.pm AutoSplitting blib/lib/Net/SSH2.pm (blib/lib/auto/Net/SSH2) /usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/pe +rl/5.8/ExtUtils/typemap -typemap typemap SSH2.xs > SSH2.xsc && mv SS +H2.xsc SSH2.c cc -c -I/usr/include -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PI +DS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEF +ILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.18\" -DXS_VERSI +ON=\"0.18\" -fPIC "-I/usr/lib/perl/5.8/CORE" SSH2.c In file included from SSH2.xs:11: ppport.h:3042:1: warning: "PERL_UNUSED_DECL" redefined In file included from SSH2.xs:8: /usr/lib/perl/5.8/CORE/perl.h:163:1: warning: this is the location of +the previous definition SSH2.xs: In function ‘XS_Net__SSH2_version’: SSH2.xs:579: error: ‘LIBSSH2_VERSION_NUM’ undeclared (first use in thi +s function) SSH2.xs:579: error: (Each undeclared identifier is reported only once SSH2.xs:579: error: for each function it appears in.) make: *** [SSH2.o] Error 1 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible

In reply to Re^2: Threadsafe Net::SSH::Perl alternative by dariusj
in thread Threadsafe Net::SSH::Perl alternative by dariusj

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.