安装中报错:(因缺少了“yum install perl-Test-Simple.x86_64”) t/02derived.t ..... Can"t locate Test/More.pm in @INC (@INC contains: /export/servers/Perl_Module/version-0.99/blib/lib /export/servers/Perl_Module/version-0.99/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/02derived.t line 7. BEGIN failed--compilation aborted at t/02derived.t line 7. t/02derived.t ..... Dubious, test returned 2 (wstat 512, 0x200) No subtests run
安装Perl的File:LockFfile模块 安装version模块 wget http://search.cpan.org/CPAN/authors/id/J/JP/JPEACOCK/version-0.99.tar.gz tar -zxvf version-0.99.tar.gz cd version-0.99 perl Makefile.PL make make test make install
安装安装File::Lockfile模块: wget http://search.cpan.org/CPAN/authors/id/G/GL/GLORYBOX/File-Lockfile-v1.0.5.tar.gz tar -zxvf File-Lockfile-v1.0.5.tar.gz cd File-Lockfile-v1.0.5 perl Build.PL perl ./Build perl ./Build test perl ./Build install
安装Class-Data-Inheritable模块: wget http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/Class-Data-Inheritable-0.08.tar.gztar -zxvf Class-Data-Inheritable-0.08.tar.gz cd Class-Data-Inheritable-0.08 perl Makefile.PL make make test make install
安装Module-Build模块: wget http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Module-Build-0.31.tar.gz tar -zxvf Module-Build-0.31.tar.gz cd Module-Build-0.31 perl Build.PL ./Build ./Build test ./Build install
安装完提示:Usage: Socket::inet_ntoa(ip_address_sv) at ./orz line 477 因主机名不能解析,将IP和主机名写到/etc/hosts文件 [root@linuxidc servers]# vi /etc/hosts 172.16.9.242 linuxidc.com