Thread

Posted on Wed Nov 21 21:02:02 2007 by georgeking
Can't Find libssh2.so.1

I have successfully compiled libbsh2-0.18 on a fresh fedora 8 installation (openssl 0.9.8b-17 comes pre-installed). I then successfully installed Net::SSH2 via CPAN.

When I run perl -e 'use Net::SSH2;' I get the following message:

Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Net/SSH2/SSH2.so' for module Net::SSH2: libssh2.so.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/XSLoader.pm line 70. at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Net/SSH2.pm line 466

I found the following files on my system: /usr/local/lib/libssh2.so, /usr/local/lib/libssh2.so.1.0.0, /usr/local/lib/libssh2.so.1

How do I tell Net::SSH2 where to find the shared objects?

Getting Net::SSH2 working is very important to me. Thanks in advance! George

Direct Responses: 6491 | Write a response
Posted on Wed Nov 21 21:14:20 2007 by georgeking in response to 6490
Re: Can't Find libssh2.so.1
Solution: add /usr/local/lib to the $LD_LIBRARY_PATH environment variable.
Write a response