jira0004 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am trying to get Net::SSH2 to install on Fedora Core 4 Linux.
I have installed OpenSSL and libssh2 which are pre-requisites for Net::SSH2.
I then attempt to make Net::SSH2 using the standard method:
The perl Makefile.PL step and the make step work correctly. However, make test yields the following error:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/Net-SSH2.... # Failed test 'use Net::SSH2;' # in t/Net-SSH2.t at line 19. # Tried to use 'Net::SSH2'. # Error: Can't load '/home/pjirak/Downloads/Net-SSH2/Net-SSH2-0.0 +9/blib/arch/auto/Net/SSH2/SSH2.so' for module Net::SSH2: libssh2.so: +cannot open shared object file: No such file or directory at /usr/lib +/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230. # at (eval 3) line 2 # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at t/Net-SSH2.t line 19. &Net::SSH2::constant not defined at t/Net-SSH2.t line 22
I can do a force install Net::SSH2, however, after that I still get the same error when I try to run my Perl program that uses Net::SSH2.
I have looked on google and some other sources as well. I have found that others have had this problem on Fedora Core 4 Linux, however, I have not yet found a solution. A searched on perl monks. I have found nodes about Net::SSH2, but none about this problem. I've gone through some of the install notes, but haven't figured out if there is an install flag I need to use when making Net::SSH2 so that it can/will find the libssh2 when it is run.
Does any one know what I need to do to get Net::SSH2 to install on Fedora Core 4?
Has any one else had this problem?
Does any one have any ideas regarding compile flags that I need (but am missing) when I make Net::SSH2 to cause Net::SSH2 to find libssh2 when it runs?
Any help any one can provide would be useful.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I can not get Net::SSH2 to install on Fedora Core 4 Linux
by Khen1950fx (Canon) on Sep 27, 2006 at 23:15 UTC |