http://www.perlmonks.org?node_id=923062


in reply to Re^2: Need Help Installing Net::SSH2
in thread Need Help Installing Net::SSH2

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...