I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2007-11-21 19:02:02-08 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 | 8713 | Write a response
Posted on 2007-11-21 19:14:20-08 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.
Direct Responses: Write a response
Posted on 2008-09-02 02:44:10-07 by madmick in response to 6490
Re: Can't Find libssh2.so.1
I am having a very similar issue. Would you share your solution ? Thanks in advance !
Direct Responses: Write a response