0

I am using perl 5.8.8 on redhat 5.x. I went into direcotry perl/bin/ and execute cpan Net:SFTP,but encountered following issues. Could you help to check it?

………………………………………………………
…………………………………………

  CPAN.pm: Going to build T/TU/TURNSTEP/Math-GMP-2.07.tar.gz

Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lgmp
Generating a Unix-style Makefile
Writing Makefile for Math::GMP
Writing MYMETA.yml and MYMETA.json

==========================================================

WARNING! No GMP libraries were detected!

Please see the INSTALL file.

===========================================================


Removing (Makefile)
Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won't install
Running make for T/TU/TURNSTEP/Net-SSH-Perl-1.38.tar.gz
  Is already unwrapped into directory /root/.cpan/build/Net-SSH-Perl-1.38

  CPAN.pm: Going to build T/TU/TURNSTEP/Net-SSH-Perl-1.38.tar.gz

Couldn't chdir /root/.cpan/build/Net-SSH-Perl-1.38: No such file or directory at /usr/local/clo/xxx/xxxx/perl588/lib/5.8.8/CPAN.pm line 2137
liam xu
  • 2,892
  • 10
  • 42
  • 65
  • Use Net::SFTP::Foreign instead. – salva Apr 17 '15 at 13:56
  • thanks. it seems ok. And the installation time is very short compared to Net:SFTP. what does 'Foreign' here mean? – liam xu Apr 20 '15 at 01:58
  • It means that it uses a foreign (non-perl, external) program to establish the SSH connection to the remote host, in contraposition to `Perl` as used in Net::SSH::Perl that is the base for Net::SFTP. – salva Apr 20 '15 at 08:36

1 Answers1

0

If you are using Red Hat Linux then use up2date command to install most common modules:

up2date module-name

For a basic understanding look at this tutorial.

For more information look at this: How to install perl modules

Community
  • 1
  • 1
serenesat
  • 4,611
  • 10
  • 37
  • 53