[Ssh-sftp-perl-users] Re: Re: Error in Perl::SSH2 Instalation - Make test
Brought to you by:
dbrobins
From: Rui V. F. M. <rui...@te...> - 2006-03-16 17:26:55
|
Hi Brian. Thanks a lot for helping. I have tried the things tou said, but I couldn't solve my problem: =20 # perl -MConfig -e 'print $Config{ccflags}."\n";' -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm =20 (What do I do with this??) =20 =20 =20 # ldd Net-SSH2-0.06/blib/arch/auto/Net/SSH2/SSH2.so libssh2.so =3D> not found libc.so.6 =3D> /lib64/libc.so.6 (0x00002aaaaabdf000) /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) =20 =20 # file Net-SSH2-0.06/blib/arch/auto/Net/SSH2/SSH2.so Net-SSH2-0.06/blib/arch/auto/Net/SSH2/SSH2.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped (All the other files - /lib64/libc.so.6, /lib64/ld-linux-x86-64.so.2 - show the same information) =20 =20 =20 =20 Ok, now I know the error is this!!! (libssh2.so =3D> not found). But I didn't notice ant error while compiling libssh2! =20 =20 =20 =20 # ldd libssh2-0.12/src/libssh2.so libssl.so.5 =3D> /lib64/libssl.so.5 (0x00002aaaaabd8000) libcrypto.so.5 =3D> /lib64/libcrypto.so.5 (0x00002aaaaad13000) libgssapi_krb5.so.2 =3D> /usr/lib64/libgssapi_krb5.so.2 (0x00002aaaaaf3f000) libkrb5.so.3 =3D> /usr/lib64/libkrb5.so.3 (0x00002aaaab057000) libcom_err.so.2 =3D> /lib64/libcom_err.so.2 (0x00002aaaab1cb000) libk5crypto.so.3 =3D> /usr/lib64/libk5crypto.so.3 (0x00002aaaab2cd000) libresolv.so.2 =3D> /lib64/libresolv.so.2 (0x00002aaaab3f1000) libdl.so.2 =3D> /lib64/libdl.so.2 (0x00002aaaab506000) libz.so.1 =3D> /usr/lib64/libz.so.1 (0x00002aaaab60a000) libm.so.6 =3D> /lib64/libm.so.6 (0x00002aaaab71f000) libc.so.6 =3D> /lib64/libc.so.6 (0x00002aaaab8a4000) libkrb5support.so.0 =3D> /usr/lib64/libkrb5support.so.0 (0x00002aaaabadb000) /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) =20 # file libssh2-0.12/src/libssh2.so libssh2-0.12/src/libssh2.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped =20 =20 =20 Instalation of libssh2-0.12: =20 # ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for socket in -lsocket... no checking for ceil in -lm... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for ranlib... ranlib checking whether byte ordering is bigendian... no checking for pkg-config... /usr/bin/pkg-config checking for OpenSSL... Using paths from pkg-config checking for libz... Found in /usr/local/include /usr/local/lib checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for poll... yes checking for gettimeofday... yes checking for select... yes checking for an ANSI C-conforming const... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating include/libssh2_config.h config.status: include/libssh2_config.h is unchanged =20 =20 # make all install make[1]: Entering directory `/home/config/Modulos_Perl/Net-SSH2/libssh2-0.12/src' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/config/Modulos_Perl/Net-SSH2/libssh2-0.12/src' gcc -o ssh2_sample.o ssh2_sample.c -c -g -O2 -I/usr/include -I/usr/local/include -Iinclude/ -Wall -g gcc -o ssh2_sample ssh2_sample.o -lssh2 -Lsrc/ ./mkinstalldirs /usr/local/include ./mkinstalldirs /usr/local/lib make[1]: Entering directory `/home/config/Modulos_Perl/Net-SSH2/libssh2-0.12/src' /usr/bin/install -c libssh2.so /usr/local/lib make[1]: Leaving directory `/home/config/Modulos_Perl/Net-SSH2/libssh2-0.12/src' /usr/bin/install -c -m 644 include/libssh2.h /usr/local/include/ /usr/bin/install -c -m 644 include/libssh2_sftp.h /usr/local/include/ /usr/bin/install -c -m 644 include/libssh2_publickey.h /usr/local/include/ =20 =20 Gor me, it seems that libssh2 is installed. But if I do this again: =20 # ldd Net-SSH2-0.06/blib/arch/auto/Net/SSH2/SSH2.so libssh2.so =3D> not found libc.so.6 =3D> /lib64/libc.so.6 (0x00002aaaaabdf000) /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) =20 =20 What can I do to install Net::SSH2? I really need this module for some scripts I'm creating, can anyone show me what I might try? I really don't know how to make this work... =20 Thanks! Rui |