Net::SFTP

Jacqui Caren jacqui.caren at ntlworld.com
Tue Feb 21 16:44:41 GMT 2006


 From a colleage

"Hi Jacqui

Have you ever tried to install Net::SFTP or NET::SSH::Perl ?   Did you 
manage to do it successfully ?

  I'm having some real problems trying to install it on lion at the 
moment and in particular the dependency Math::Pari.

Do you have any ideas for an alternative SFTP package?
"

As I have never used this package I hope one of you kind folks here
will come up with an alternative or tell me that you need to install
a missing sun package or something :-)


The system it is being installed upon is

$ uname -a
SunOS lion 5.5 Generic_103093-14 sun4m sparc SUNW,SPARCstation-10

The errors are

### error messages ###############

cd libPARI && make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" 
PREFIX="" OPTIMIZE="-O" PASTHRU_DEFINE="" PASTHRU_INC=""
gcc -c  -I pari-2.1.7/src -Ipari-2.1.7/src/headers -Ipari-2.1.7/src 
-I./libPARI  -pipe -I/opt/gnu/include -O    -DVERSION=\"2.010702\" 
-DXS_VERSION=\"2.010702\" -fPIC 
"-I/cmi/cmiadm/utils/lib/perl5/5.8.7/sun4-solaris/CORE" 
-DPARI_VERSION_EXP=2001007 -DDEBUG_PARI -DLSB_in_U32=3 -Derr=pari_err Pari.c
In file included from /usr/include/sys/dki_lkinfo.h:11,
                  from /usr/include/sys/t_lock.h:18,
                  from /usr/include/sys/vnode.h:37,
                  from /usr/include/sys/stream.h:16,
                  from /usr/include/netinet/in.h:28,
                  from 
/cmi/cmiadm/utils/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:880,
                  from Pari.xs:19:
/usr/include/sys/dl.h:31: parse error before `long'
/usr/include/sys/dl.h:32: parse error before `long'
In file included from /usr/include/sys/t_lock.h:18,
                  from /usr/include/sys/vnode.h:37,
                  from /usr/include/sys/stream.h:16,
                  from /usr/include/netinet/in.h:28,
                  from 
/cmi/cmiadm/utils/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:880,
                  from Pari.xs:19:
/usr/include/sys/dki_lkinfo.h:37: parse error before `long'
/usr/include/sys/dki_lkinfo.h:37: warning: no semicolon at end of struct 
or union
/usr/include/sys/dki_lkinfo.h:41: parse error before `}'
/usr/include/sys/dki_lkinfo.h:41: warning: data definition has no type 
or storage class
/usr/include/sys/dki_lkinfo.h:44: parse error before `lkstat_t'
/usr/include/sys/dki_lkinfo.h:44: warning: no semicolon at end of struct 
or union
/usr/include/sys/dki_lkinfo.h:46: parse error before `}'
/usr/include/sys/dki_lkinfo.h:46: warning: data definition has no type 
or storage class
/usr/include/sys/dki_lkinfo.h:59: parse error before `lkstat_t'
/usr/include/sys/dki_lkinfo.h:59: warning: no semicolon at end of struct 
or union
/usr/include/sys/dki_lkinfo.h:60: warning: data definition has no type 
or storage class
/usr/include/sys/dki_lkinfo.h:61: parse error before `}'
/usr/include/sys/dki_lkinfo.h:61: warning: data definition has no type 
or storage class
/usr/include/sys/dki_lkinfo.h:64: parse error before `*'
/usr/include/sys/dki_lkinfo.h:64: warning: data definition has no type 
or storage class
/usr/include/sys/dki_lkinfo.h:65: parse error before `*'
/usr/include/sys/dki_lkinfo.h:66: parse error before `*'
*** Error code 1
make: Fatal error: Command failed for target `Pari.o'


and perl is

# ./perl -V
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
   Platform:
     osname=solaris, osvers=2.5, archname=sun4-solaris
     uname='sunos lion 5.5 generic_103093-14 sun4m sparc 
sunw,sparcstation-10 '
     config_args=''
     hint=previous, useposix=true, d_sigaction=define
     usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=undef use64bitall=undef uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='gcc', ccflags ='-pipe -I/opt/gnu/include',
     optimize='-O',
     cppflags='-pipe -I/opt/gnu/include -pipe -I/opt/gnu/include'
     ccversion='', gccversion='2.8.1', gccosandvers='solaris2.6'
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=4
     alignbytes=8, prototype=define
   Linker and Libraries:
     ld='gcc', ldflags =' -L/opt/gnu/lib '
     libpth=/opt/gnu/lib /usr/lib /usr/ccs/lib
     libs=-lsocket -lnsl -ldl -lm -lc
     perllibs=-lsocket -lnsl -ldl -lm -lc
     libc=, so=so, useshrplib=false, libperl=libperl.a
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
     cccdlflags='-fPIC', lddlflags='-G -L/opt/gnu/lib'


Characteristics of this binary (from libperl):
   Compile-time options: USE_LARGE_FILES
   Built under solaris
   Compiled at Feb 15 2006 18:33:43
   @INC:
     /cmi/cmiadm/utils/lib/perl5/5.8.7/sun4-solaris
     /cmi/cmiadm/utils/lib/perl5/5.8.7
     /cmi/cmiadm/utils/lib/perl5/site_perl/5.8.7/sun4-solaris
     /cmi/cmiadm/utils/lib/perl5/site_perl/5.8.7
     /cmi/cmiadm/utils/lib/perl5/site_perl
     /cmi/run/lib/perl5/site_perl/sun4-solaris
     /cmi/run/lib/perl5/site_perl
     .
#

TIA

Jacqui


More information about the london.pm mailing list