LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-26-2007, 04:49 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
install Net::SFTP perl module on debian etch


hi

howto install Net::SFTP perl module on debian etch stable ?

greetings
cccc

Last edited by cccc; 10-26-2007 at 09:59 AM.
 
Old 10-26-2007, 09:29 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
try installing the libnet-lite-ftp-perl package. That says it supports TLS.
 
Old 10-26-2007, 09:57 AM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
I've installed, but still doesn't work.
 
Old 10-27-2007, 10:57 AM   #4
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
I'm not sure whether there is a Debian-specific solution, but for a Perl module, why not use CPAN?
 
Old 10-28-2007, 12:23 PM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
thanks, I tried, but it doesn't work:
Code:
# cpan
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install Net::SFTP
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Fri, 26 Oct 2007 03:36:33 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://ftp.solnet.ch/mirror/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Fetching with LWP:
  ftp://ftp.solnet.ch/mirror/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Sat, 27 Oct 2007 15:36:34 GMT

  There's a new CPAN.pm version (v1.9203) available!
  [Current version is v1.7602]
  You might want to try
    install Bundle::CPAN
    reload cpan
  without quitting the current session. It should be a seamless upgrade
  while we are running...

Fetching with LWP:
  ftp://ftp.solnet.ch/mirror/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Running install for module Net::SFTP
Running make for D/DB/DBROBINS/Net-SFTP-0.10.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /root/.cpan/sources/authors/id/D/DB/DBROBINS/Net-SFTP-0.10.tar.gz o                                              k
Scanning cache /root/.cpan/build for sizes
Deleting from cache: /root/.cpan/build/Net-SFTP-0.10 (24.7>10.0 MB)
Deleting from cache: /root/.cpan/build/Crypt-DES-2.05 (24.4>10.0 MB)
Deleting from cache: /root/.cpan/build/Crypt-DES_EDE3-0.01 (24.2>10.0 MB)
Deleting from cache: /root/.cpan/build/Convert-ASN1-0.21 (24.1>10.0 MB)
Deleting from cache: /root/.cpan/build/Class-ErrorHandler-0.01 (23.7>10.0 MB)
Deleting from cache: /root/.cpan/build/Convert-PEM-0.07 (23.5>10.0 MB)
Deleting from cache: /root/.cpan/build/Data-Buffer-0.04 (23.3>10.0 MB)
Deleting from cache: /root/.cpan/build/Crypt-DSA-0.14 (23.2>10.0 MB)
Deleting from cache: /root/.cpan/build/String-CRC32-1.4 (22.9>10.0 MB)
Deleting from cache: /root/.cpan/build/Crypt-CBC-2.24 (22.8>10.0 MB)
Deleting from cache: /root/.cpan/build/Crypt-Blowfish-2.10 (22.5>10.0 MB)
Deleting from cache: /root/.cpan/build/Tie-EncryptedHash-1.21 (22.4>10.0 MB)
Deleting from cache: /root/.cpan/build/Math-Pari-2.010709 (22.2>10.0 MB)
Net-SFTP-0.10/
Net-SFTP-0.10/eg/
Net-SFTP-0.10/eg/psftp
Net-SFTP-0.10/t/
Net-SFTP-0.10/t/06-circular.t
Net-SFTP-0.10/t/01-load.t
Net-SFTP-0.10/Changes
Net-SFTP-0.10/MANIFEST
Net-SFTP-0.10/MANIFEST.SKIP
Net-SFTP-0.10/lib/
Net-SFTP-0.10/lib/Net/
Net-SFTP-0.10/lib/Net/SFTP/
Net-SFTP-0.10/lib/Net/SFTP/Util.pm
Net-SFTP-0.10/lib/Net/SFTP/Attributes.pm
Net-SFTP-0.10/lib/Net/SFTP/Buffer.pm
Net-SFTP-0.10/lib/Net/SFTP/Constants.pm
Net-SFTP-0.10/lib/Net/SFTP.pm
Net-SFTP-0.10/ToDo
Net-SFTP-0.10/META.yml
Net-SFTP-0.10/LICENSE
Net-SFTP-0.10/Makefile.PL
Net-SFTP-0.10/README

  CPAN.pm: Going to build D/DB/DBROBINS/Net-SFTP-0.10.tar.gz

Checking if your kit is complete...
Looks good
Warning: prerequisite Net::SSH::Perl 1.24 not found.
Writing Makefile for Net::SFTP
---- Unsatisfied dependencies detected during [D/DB/DBROBINS/Net-SFTP-0.10.tar.g                                              z] -----
    Net::SSH::Perl
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
 
Old 10-28-2007, 12:27 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
?

That's not an error.. just answer the question at the end.
 
Old 10-28-2007, 12:36 PM   #7
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
I answered YES and got a lot of errors.
now if I try to install again, I get the following:
Code:
~# cpan
CPAN: File::HomeDir loaded ok (v0.66)

cpan shell -- CPAN exploration and modules installation (v1.9203)
ReadLine support enabled

                                                                                cpan[1]> install NET::SFTP
CPAN: Storable loaded ok (v2.15)
Going to read /root/.cpan/Metadata
  Database was generated on Sat, 27 Oct 2007 15:36:34 GMT
Warning: Cannot install NET::SFTP, don't know what it is.
Try the command

    i /NET::SFTP/

to find objects with matching identifiers.
CPAN: Time::HiRes loaded ok (v1.86)

                                                                                cpan[2]>
what's wrong ?
 
Old 10-28-2007, 04:06 PM   #8
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
using:
Code:
perl -MCPAN -e 'install Net::SFTP'
I get the following errors:
Code:
# Looks like your test died before it could output anything.
t/02-buffer......dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-19
        Failed 19/19 tests, 0.00% okay
t/03-packet......Can't locate Math/GMP.pm in @INC (@INC contains: /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/arch /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl/Util/SSH1MP.pm line 7.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl/Util/SSH1MP.pm line 7.
Compilation failed in require at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl/Util.pm line 56.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl/Key/RSA1.pm line 6.
Compilation failed in require at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl/SSH1.pm line 13.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl/SSH1.pm line 13.
Compilation failed in require at /root/.cpan/build/Net-SSH-Perl-1.30-gJgHNi/blib/lib/Net/SSH/Perl.pm line 54.
# Looks like your test died before it could output anything.
t/03-packet......dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-10
        Failed 10/10 tests, 0.00% okay
t/04-config......ok
t/05-cipher......ok
t/06-circular....ok
Failed Test   Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/02-buffer.t  255 65280    19   38  1-19
t/03-packet.t  255 65280    10   20  1-10
Failed 2/6 test scripts. 29/116 subtests failed.
Files=6, Tests=116,  1 wallclock secs ( 0.56 cusr +  0.05 csys =  0.61 CPU)
Failed 2/6 test programs. 29/116 subtests failed.
make: *** [test_dynamic] Error 255
  DBROBINS/Net-SSH-Perl-1.30.tar.gz
  /usr/bin/make test -- NOT OK
//hint// To get more information about failing tests, try:
  reports DBROBINS/Net-SSH-Perl-1.30.tar.gz
Running make install
  make test had returned bad status, won't install without force
Running make for D/DB/DBROBINS/Net-SFTP-0.10.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/Net-SFTP-0.10-bpCflJ

  CPAN.pm: Going to build D/DB/DBROBINS/Net-SFTP-0.10.tar.gz

Warning: Prerequisite 'Net::SSH::Perl => 1.24' for 'D/DB/DBROBINS/Net-SFTP-0.10.tar.gz' failed when processing 'D/DB/DBROBINS/Net-SSH-Perl-1.30.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited.
cp lib/Net/SFTP/Util.pm blib/lib/Net/SFTP/Util.pm
cp lib/Net/SFTP.pm blib/lib/Net/SFTP.pm
cp lib/Net/SFTP/Attributes.pm blib/lib/Net/SFTP/Attributes.pm
cp lib/Net/SFTP/Buffer.pm blib/lib/Net/SFTP/Buffer.pm
cp lib/Net/SFTP/Constants.pm blib/lib/Net/SFTP/Constants.pm
Manifying blib/man3/Net::SFTP::Util.3pm
Manifying blib/man3/Net::SFTP.3pm
Manifying blib/man3/Net::SFTP::Attributes.3pm
Manifying blib/man3/Net::SFTP::Buffer.3pm
Manifying blib/man3/Net::SFTP::Constants.3pm
  DBROBINS/Net-SFTP-0.10.tar.gz
  /usr/bin/make -- 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/01-load........Can't locate Net/SSH/Perl/Buffer.pm in @INC (@INC contains: /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/arch /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Buffer.pm line 6.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Buffer.pm line 6.
Compilation failed in require at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Attributes.pm line 7.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Attributes.pm line 7.
Compilation failed in require at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP.pm line 8.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP.pm line 8.
Compilation failed in require at t/01-load.t line 5.
BEGIN failed--compilation aborted at t/01-load.t line 5.
t/01-load........dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED test 1
        Failed 1/1 tests, 0.00% okay
t/06-circular....Can't locate Net/SSH/Perl/Buffer.pm in @INC (@INC contains: /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/arch /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Buffer.pm line 6.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Buffer.pm line 6.
Compilation failed in require at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Attributes.pm line 7.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP/Attributes.pm line 7.
Compilation failed in require at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP.pm line 8.
BEGIN failed--compilation aborted at /root/.cpan/build/Net-SFTP-0.10-bpCflJ/blib/lib/Net/SFTP.pm line 8.
Compilation failed in require at t/06-circular.t line 5.
BEGIN failed--compilation aborted at t/06-circular.t line 5.
t/06-circular....dubious
        Test returned status 2 (wstat 512, 0x200)
Failed Test     Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/01-load.t        2   512     1    2  1
t/06-circular.t    2   512    ??   ??  ??
Failed 2/2 test scripts. 1/1 subtests failed.
Files=2, Tests=1,  0 wallclock secs ( 0.02 cusr +  0.02 csys =  0.04 CPU)
Failed 2/2 test programs. 1/1 subtests failed.
make: *** [test_dynamic] Error 2
  DBROBINS/Net-SFTP-0.10.tar.gz
  /usr/bin/make test -- NOT OK
//hint// To get more information about failing tests, try:
  reports DBROBINS/Net-SFTP-0.10.tar.gz
Running make install
  make test had returned bad status, won't install without force
 
Old 10-30-2007, 09:47 AM   #9
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
this problem is solved now !

1.)

# apt-get install dh-make-perl dpkg-dev

# apt-get install libdbi-perl libdbd-mysql-perl libdigest-md5-perl libdigest-sha1-perl libimage-size-perl libmime-lite-perl libmime-perl libcompress-zlib-perl libmime-base64-perl liburi-perl libhtml-tagset-perl libhtml-parser-perl libwww-perl libwww-perl libgd-perl libmailtools-perl libunicode-maputf8-perl libstorable-perl libtime-hires-perl

# apt-get install libnet-perl libgd-graph-perl libproc-process-perl librpc-xml-perl libsoap-lite-perl libxml-rss-perl libstring-crc32-perl

# apt-get install libmath-gmp-perl


2.)

# perl -MCPAN -e 'install Math::GMP'

yes


3.) I've downloadet and installed Net-SSH-Perl-1.24

perl Makefile.PL
make
make test
make install

4.) cpan> install Math::Pari

yes


5.) download and install Net-SFTP-0.10

perl Makefile.PL
make
make test
make install


now it seems to work.

greetings
cccc

Last edited by cccc; 02-24-2009 at 05:05 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Chrooted SFTP With MySecureShell On Debian Etch LXer Syndicated Linux News 0 09-21-2007 08:12 PM
LXer: Chrooted SSH/SFTP Tutorial (Debian Etch) LXer Syndicated Linux News 0 09-09-2007 01:20 PM
Using Perl NET::TELNET module DannyM Linux - Networking 4 02-15-2005 11:31 AM
Load Net module on Debian install process piraxter Linux - General 1 02-13-2003 02:50 PM
perl-module Net::RawIP - install problem nic_d Linux - Software 0 07-06-2002 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration