Go into the directory that you untarred the src to and type:
./configure --help
A list of all the different options will popup. I would recommend doing:
./configure --enable-shared --with-gnu-ld
The "--with-gnu-ld" is necessary in order to properly do ldconfig. So the mantra is:
./configure --enable-shared --with-gnu-ld make make check make install /sbin/ldconfig /usr/local/lib
Now run
whereis libssh2
If everything's in order, then it should return something like:
/usr/local/lib/libssh2.so /usr/local/lib/libssh2.a /usr/local/lib/libssh2.la
Update: I think that you have the same problem with OpenSSL. Here's the most recent tarball:

http://www.openssl.org/source/openssl-1.0.0d.tar.gz

It's a slightly more complicated procedure. First, you need to remove the current openssl include headers. Then do
./Configure linux-elf -march=pentium make make test make install
Next, you must manually install Net::SSH2.
export LD_LIBRARY_PATH=/usr/local/lib perl Makefile.PL lib=/usr/local/lib make make test make install
Now, you're good to go...

In reply to Re^3: Need Help Installing Net::SSH2 by Khen1950fx
in thread 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.