安装 perl sftp 模块时出现的问题

problems when installing perl sftp module

我在 redhat 5.x 上使用 perl 5.8.8。我进入目录 perl/bin/ 并执行 cpan Net:SFTP,但遇到了以下问题。能帮忙查一下吗?

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

  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

如果您使用的是 Red Hat Linux 然后使用 up2date 命令安装最常用的模块:

up2date module-name

如需基本了解,请查看此 tutorial

有关更多信息,请查看:How to install perl modules