Error installing Net::SSH2
am 08.02.2007 16:48:38 von csbInstalling via cpan. Everything looks fine until it attempts to make
test.
- - - - - -
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Net-SSH2....
t/Net-SSH2....NOK 1/72# Failed test 'use
Net::SSH2;'
# at t/Net-SSH2.t line 19.
# Tried to use 'Net::SSH2'.
# Error: Can't load '/.cpan/build/Net-SSH2-0.09/blib/arch/auto/
Net/SSH2/SSH2.so' for module Net::SSH2: ld.so.1: perl: fatal:
relocation error: file /usr/local/lib/libssh2.so: symbol
EVP_aes_192_cbc: referenced symbol not found at /usr/local/lib/
perl5/5.8.7/sun4-solaris/DynaLoader.pm line 230.
# at (eval 3) line 2
- - - - - -
Usually, I can decipher some clue as to why a module isn't installing
and go hunting for an answer. However, i can't seem to figure out
which way to go on this one.
If you have any suggestions, they would be greatly appreciated.
Thanks!
- - Additional Info - -
SunOS 5.10 sparc
OpenSSL 0.9.7d 17 Mar 2004
Perl v5.8.7
libssh2-0.14
cpan[2]> install
Net::SSH2
Running install for module Net::SSH2
Running make for D/DB/DBROBINS/Net-SSH2-0.09.tar.gz
CPAN: Digest::SHA loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /.cpan/sources/authors/id/D/DB/DBROBINS/Net-
SSH2-0.09.tar.gz ok
Scanning cache /.cpan/build for sizes
x Net-SSH2-0.09, 0 bytes, 0 tape blocks
x Net-SSH2-0.09/META.yml, 411 bytes, 1 tape blocks
x Net-SSH2-0.09/t, 0 bytes, 0 tape blocks
x Net-SSH2-0.09/t/Net-SSH2.t, 6700 bytes, 14 tape blocks
x Net-SSH2-0.09/SSH2.xs, 49979 bytes, 98 tape blocks
x Net-SSH2-0.09/README, 2780 bytes, 6 tape blocks
x Net-SSH2-0.09/example, 0 bytes, 0 tape blocks
x Net-SSH2-0.09/example/read.pl, 1013 bytes, 2 tape blocks
x Net-SSH2-0.09/MANIFEST, 339 bytes, 1 tape blocks
x Net-SSH2-0.09/typemap, 2876 bytes, 6 tape blocks
x Net-SSH2-0.09/ppport.h, 117049 bytes, 229 tape blocks
x Net-SSH2-0.09/fallback, 0 bytes, 0 tape blocks
x Net-SSH2-0.09/fallback/const-c.inc, 59661 bytes, 117 tape blocks
x Net-SSH2-0.09/fallback/const-xs.inc, 2651 bytes, 6 tape blocks
x Net-SSH2-0.09/Changes, 3013 bytes, 6 tape blocks
x Net-SSH2-0.09/Makefile.PL, 6833 bytes, 14 tape blocks
x Net-SSH2-0.09/lib, 0 bytes, 0 tape blocks
x Net-SSH2-0.09/lib/Net, 0 bytes, 0 tape blocks
x Net-SSH2-0.09/lib/Net/SSH2, 0 bytes, 0 tape blocks
x Net-SSH2-0.09/lib/Net/SSH2/Dir.pm, 828 bytes, 2 tape blocks
x Net-SSH2-0.09/lib/Net/SSH2/Listener.pm, 815 bytes, 2 tape blocks
x Net-SSH2-0.09/lib/Net/SSH2/SFTP.pm, 2322 bytes, 5 tape blocks
x Net-SSH2-0.09/lib/Net/SSH2/Channel.pm, 4513 bytes, 9 tape blocks
x Net-SSH2-0.09/lib/Net/SSH2/File.pm, 2117 bytes, 5 tape blocks
x Net-SSH2-0.09/lib/Net/SSH2.pm, 22476 bytes, 44 tape blocks
Removing previously used /.cpan/build/Net-SSH2-0.09
CPAN.pm: Going to build D/DB/DBROBINS/Net-SSH2-0.09.tar.gz
Net::SSH2: using library -L/usr/local/lib -lssh2 and include path -I/
usr/local/include.
Checking if your kit is complete...
Looks good
Writing Makefile for Net::SSH2
CPAN: YAML loaded ok
cp lib/Net/SSH2/File.pm blib/lib/Net/SSH2/File.pm
cp lib/Net/SSH2/Dir.pm blib/lib/Net/SSH2/Dir.pm
cp lib/Net/SSH2/SFTP.pm blib/lib/Net/SSH2/SFTP.pm
cp lib/Net/SSH2/Listener.pm blib/lib/Net/SSH2/Listener.pm
cp lib/Net/SSH2/Channel.pm blib/lib/Net/SSH2/Channel.pm
cp lib/Net/SSH2.pm blib/lib/Net/SSH2.pm
AutoSplitting blib/lib/Net/SSH2.pm (blib/lib/auto/Net/SSH2)
/usr/bin/perl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap /
usr/local/lib/perl5/5.8.7/ExtUtils/typemap -typemap typemap SSH2.xs >
SSH2.xsc && mv SSH2.xsc SSH2.c
gcc -B/usr/ccs/bin/ -c -I/usr/local/include -I. -fno-strict-aliasing -
pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
O -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -fPIC "-I/usr/local/lib/
perl5/5.8.7/sun4-solaris/CORE" SSH2.c
Running Mkbootstrap for Net::SSH2 ()
chmod 644 SSH2.bs
rm -f blib/arch/auto/Net/SSH2/SSH2.so
LD_RUN_PATH="/usr/local/lib" gcc -B/usr/ccs/bin/ -G -L/usr/local/lib
SSH2.o -o blib/arch/auto/Net/SSH2/SSH2.so -L/usr/local/lib -
lssh2
chmod 755 blib/arch/auto/Net/SSH2/SSH2.so
cp SSH2.bs blib/arch/auto/Net/SSH2/SSH2.bs
chmod 644 blib/arch/auto/Net/SSH2/SSH2.bs
Manifying blib/man3/Net::SSH2::File.3
Manifying blib/man3/Net::SSH2::Dir.3
Manifying blib/man3/Net::SSH2::SFTP.3
Manifying blib/man3/Net::SSH2::Listener.3
Manifying blib/man3/Net::SSH2::Channel.3
Manifying blib/man3/Net::SSH2.3
/usr/local/bin/gmake -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Net-SSH2....
t/Net-SSH2....NOK 1/72# Failed test 'use
Net::SSH2;'
# at t/Net-SSH2.t line 19.
# Tried to use 'Net::SSH2'.
# Error: Can't load '/.cpan/build/Net-SSH2-0.09/blib/arch/auto/
Net/SSH2/SSH2.so' for module Net::SSH2: ld.so.1: perl: fatal:
relocation error: file /usr/local/lib/libssh2.so: symbol
EVP_aes_192_cbc: referenced symbol not found at /usr/local/lib/
perl5/5.8.7/sun4-solaris/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
# Looks like you planned 72 tests but only ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test died just after 1.
t/Net-
SSH2....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-72
Failed 72/72 tests, 0.00% okay
Failed Test Stat Wstat Total Fail List of Failed
------------------------------------------------------------ -------------------
t/Net-SSH2.t 255 65280 72 143 1-72
Failed 1/1 test scripts. 72/72 subtests failed.
Files=1, Tests=72, 1 wallclock secs ( 0.17 cusr + 0.04 csys = 0.21
CPU)
Failed 1/1 test programs. 72/72 subtests failed.
gmake: *** [test_dynamic] Error 255
/usr/local/bin/gmake test -- NOT OK
Running make install
make test had returned bad status, won't install without force
Failed during this command:
DBROBINS/Net-SSH2-0.09.tar.gz : make_test NO
cpan[3]>