Here the output of the rpm info (I forgot to quote the dev package sorry):
rpm -ql libssh2-devel /usr/include/libssh2.h /usr/include/libssh2_publickey.h /usr/include/libssh2_sftp.h /usr/lib64/libssh2.so /usr/lib64/pkgconfig/libssh2.pc /usr/share/doc/libssh2-devel-1.2.2 /usr/share/doc/libssh2-devel-1.2.2/COPYING rpm -ql libssh2 /usr/lib64/libssh2.so.1 /usr/lib64/libssh2.so.1.0.1 /usr/share/doc/libssh2-1.2.2 /usr/share/doc/libssh2-1.2.2/AUTHORS /usr/share/doc/libssh2-1.2.2/COPYING /usr/share/doc/libssh2-1.2.2/ChangeLog /usr/share/doc/libssh2-1.2.2/NEWS /usr/share/doc/libssh2-1.2.2/README
Now i run make / make install with following output:
make Skip blib/lib/Net/SSH2/File.pm (unchanged) Skip blib/lib/Net/SSH2/PublicKey.pm (unchanged) Skip blib/lib/Net/SSH2/Dir.pm (unchanged) Skip blib/lib/Net/SSH2/SFTP.pm (unchanged) Skip blib/lib/Net/SSH2/Listener.pm (unchanged) Skip blib/lib/Net/SSH2/Channel.pm (unchanged) Skip blib/lib/Net/SSH2.pm (unchanged) cc -c -I/usr/include -I. -fno-strict-aliasing -pipe -fstack-protector + -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 + -DVERSION=\"0.46\" -DXS_VERSION=\"0.46\" -fPIC "-I/usr/bin/perl5.16 +/lib/5.16.2/x86_64-linux/CORE" SSH2.c Running Mkbootstrap for Net::SSH2 () chmod 644 SSH2.bs rm -f blib/arch/auto/Net/SSH2/SSH2.so LD_RUN_PATH="/usr/local/lib:/lib/../lib64:/usr/lib/../lib64" cc -shar +ed -O2 -L/usr/local/lib -fstack-protector SSH2.o -o blib/arch/auto/N +et/SSH2/SSH2.so \ -L/usr/local/lib -lssh2 -lz -lssl -lcrypto \ chmod 755 blib/arch/auto/Net/SSH2/SSH2.so cp SSH2.bs blib/arch/auto/Net/SSH2/SSH2.bs chmod 644 blib/arch/auto/Net/SSH2/SSH2.bs Manifying blib/man3/Net::SSH2::File.3 Manifying blib/man3/Net::SSH2::Dir.3 Manifying blib/man3/Net::SSH2::PublicKey.3 Manifying blib/man3/Net::SSH2::SFTP.3 Manifying blib/man3/Net::SSH2::Listener.3 Manifying blib/man3/Net::SSH2::Channel.3 Manifying blib/man3/Net::SSH2.3 and make install Files found in blib/arch: installing files in blib/lib into architectu +re dependent library tree Installing /usr/bin/perl5.16/lib/site_perl/5.16.2/x86_64-linux/auto/Ne +t/SSH2/SSH2.bs Installing /usr/bin/perl5.16/lib/site_perl/5.16.2/x86_64-linux/auto/Ne +t/SSH2/SSH2.so Installing /usr/bin/perl5.16/lib/site_perl/5.16.2/x86_64-linux/auto/Ne +t/SSH2/autosplit.ix Installing /usr/bin/perl5.16/lib/site_perl/5.16.2/x86_64-linux/Net/SSH +2.pm Installing /usr/bin/perl5.16/lib/site_perl/5.16.2/x86_64-linux/Net/SSH +2/PublicKey.pm Installing /usr/bin/perl5.16/lib/site_perl/5.16.2/x86_64-linux/Net/SSH +2/Dir.pm Installing /usr/bin/perl5.16/lib/site_perl/5.16.2/x86_64-linux/Net/SSH +2/File.pm Installing /usr/bin/perl5.16/lib/site_perl/5.16.2/x86_64-linux/Net/SSH +2/Listener.pm Installing /usr/bin/perl5.16/lib/site_perl/5.16.2/x86_64-linux/Net/SSH +2/Channel.pm Installing /usr/bin/perl5.16/lib/site_perl/5.16.2/x86_64-linux/Net/SSH +2/SFTP.pm Installing /usr/bin/perl5.16/man/man3/Net::SSH2::PublicKey.3 Installing /usr/bin/perl5.16/man/man3/Net::SSH2.3 Installing /usr/bin/perl5.16/man/man3/Net::SSH2::File.3 Installing /usr/bin/perl5.16/man/man3/Net::SSH2::SFTP.3 Installing /usr/bin/perl5.16/man/man3/Net::SSH2::Channel.3 Installing /usr/bin/perl5.16/man/man3/Net::SSH2::Dir.3 Installing /usr/bin/perl5.16/man/man3/Net::SSH2::Listener.3 Appending installation info to /usr/bin/perl5.16/lib/5.16.2/x86_64-lin +ux/perllocal.pod
When i check now with perldoc perllocal if found following entry:
Tue Jan 15 12:58:39 2013: "Module" Net::SSH2 · "installed into: /usr/bin/perl5.16/lib/site_perl/5.16.2" · "LINKTYPE: dynamic" · "VERSION: 0.46" · "EXE_FILES: "
Due there where no error included, could it be that the installation is correct?

In reply to Re^2: net::ssh2 module wont install RHEL6 by SkyFulcrum
in thread net::ssh2 module wont install RHEL6 by SkyFulcrum

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.