Re: [Ssh-sftp-perl-users] Error in Perl::SSH2 Instalation - Make test
Brought to you by:
dbrobins
|
From: Bryan B. <br...@bu...> - 2006-03-14 11:28:58
|
>
>
> I'm installing Net-SSH2-0.06.
>
> I have installed (by this order), the following modules:
> - openssl-0.9.8a
> - zlib-1.2.3
> - libssh2-0.12
> - TermReadKey-2.30
>
>
Did you build these or download binaries? If your running perl x86_64,
then you need to build these from source using the same cflags your build
of perl uses. That appears to be at least: CFLAGS='-fexceptions -m64
-mtune=nocona'.
See full cflags:
perl -MConfig -e 'print $Config{ccflags}."\n";'
>
>
>
> Now I'm installing Net-SSH2-0.06:
>
> # perl Makefile.PL
> 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
>
>
> # make
> 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/lib/perl5/5.8.6/ExtUtils/xsubpp -
> typemap /usr/lib/perl5/5.8.6/ExtUtils/typemap -typemap typemap
> SSH2.xs > SSH2.xsc && mv SSH2.xsc SSH2.c
> gcc -c -I/usr/local/include -I. -D_REENTRANT -D_GNU_SOURCE -
> DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -
> D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -
> pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m64 -mtune=nocona -
> DVERSION=\"0.06\" -DXS_VERSION=\"0.06\" -fPIC "-
> I/usr/lib64/perl5/5.8.6/x86_64-linux-thread-multi/CORE" SSH2.c
> SSH2.xs: In function XS_Net__SSH2__PublicKey_add:
> SSH2.xs:1729: warning: pointer targets in passing argument 2 of
> libssh2_publickey_add_ex differ in signedness
> SSH2.xs:1729: warning: pointer targets in passing argument 4 of
> libssh2_publickey_add_ex differ in signedness
> SSH2.xs: In function XS_Net__SSH2__PublicKey_remove:
> SSH2.xs:1743: warning: pointer targets in passing argument 2 of
> libssh2_publickey_remove_ex differ in signedness
> SSH2.xs:1743: warning: pointer targets in passing argument 4 of
> libssh2_publickey_remove_ex differ in signedness
> Running Mkbootstrap for Net::SSH2 ()
> chmod 644 SSH2.bs
> rm -f blib/arch/auto/Net/SSH2/SSH2.so
> gcc -shared 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.3pm
> Manifying blib/man3/Net::SSH2::Dir.3pm
> Manifying blib/man3/Net::SSH2::SFTP.3pm
> Manifying blib/man3/Net::SSH2::Listener.3pm
> Manifying blib/man3/Net::SSH2::Channel.3pm
> Manifying blib/man3/Net::SSH2.3pm
>
>
> # 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....# Failed test (t/Net-SSH2.t at line 19)
>
> # Tried to use 'Net::SSH2'.
> # Error: Can't load '/home/config/Modulos_Perl/Net-SSH2/Net-SSH2-
>
> 0.06/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/lib64/perl5/5.8.6/x86_64-linux-thread-multi/DynaLoader.pm line
> 230.
>
This is your problem, do an ldd on 0.06/blib/arch/auto/Net/SSH2/SSH2.so,
then check all the pre-requisite libraries with file and make sure they
are the same type as "file 0.06/blib/arch/auto/Net/SSH2/SSH2.so".
Hope that helps.
Bryan
http://sourceforge.net/projects/rover
|