Ubuntu 14.04 安裝 PERL 的 REST::Client 模組

使用指令 cpan install REST::Client 即可

# cpan install REST::Client
Reading '/root/.cpan/Metadata'  
  Database was generated on Mon, 17 Nov 2014 10:29:02 GMT
Fetching with LWP:  
http://cpan.mirrors.ilisys.com.au/authors/01mailrc.txt.gz  
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'  
............................................................................DONE
Fetching with LWP:  
http://cpan.mirrors.ilisys.com.au/modules/02packages.details.txt.gz  
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'  
  Database was generated on Thu, 25 Feb 2016 07:29:02 GMT
..............
  New CPAN.pm version (v2.10) available.
  [Currently running version is v2.00]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


..............................................................DONE
Fetching with LWP:  
http://cpan.mirrors.ilisys.com.au/modules/03modlist.data.gz  
Reading '/root/.cpan/sources/modules/03modlist.data.gz'  
DONE  
Writing /root/.cpan/Metadata  
Running install for module 'REST::Client'  
Running make for K/KK/KKANE/REST-Client-273.tar.gz  
Fetching with LWP:  
http://cpan.mirrors.ilisys.com.au/authors/id/K/KK/KKANE/REST-Client-273.tar.gz  
Fetching with LWP:  
http://cpan.mirrors.ilisys.com.au/authors/id/K/KK/KKANE/CHECKSUMS  
Checksum for /root/.cpan/sources/authors/id/K/KK/KKANE/REST-Client-273.tar.gz ok

  CPAN.pm: Building K/KK/KKANE/REST-Client-273.tar.gz

Checking if your kit is complete...  
Looks good  
Writing Makefile for REST::Client  
Writing MYMETA.yml and MYMETA.json  
cp lib/REST/Client.pm blib/lib/REST/Client.pm  
Manifying blib/man3/REST::Client.3pm  
  KKANE/REST-Client-273.tar.gz
  /usr/bin/make -- OK
'YAML' not installed, will not store persistent state  
Running make test  
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t  
t/basic.t .. # Won't run tests because: Can't locate HTTP/Server/Simple.pm in @INC (you may need to install the HTTP::Server::Simple module) (@INC contains: ../lib /root/.cpan/build/REST-Client-273-94bDMz/inc /root/.cpan/build/REST-Client-273-94bDMz/blib/lib /root/.cpan/build/REST-Client-273-94bDMz/blib/arch /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at t/basic.t line 12.  
Use of uninitialized value in string eq at /usr/share/perl/5.18/Test/More.pm line 1240.  
skip() needs to know $how_many tests are in the block at t/basic.t line 21  
t/basic.t .. ok  
All tests successful.  
Files=1, Tests=1,  0 wallclock secs ( 0.01 usr +  0.00 sys =  0.01 CPU)  
Result: PASS  
  KKANE/REST-Client-273.tar.gz
  /usr/bin/make test -- OK
Running make install  
Manifying blib/man3/REST::Client.3pm  
Installing /usr/local/share/perl/5.18.2/REST/Client.pm  
Installing /usr/local/man/man3/REST::Client.3pm  
Appending installation info to /usr/local/lib/perl/5.18.2/perllocal.pod  
  KKANE/REST-Client-273.tar.gz
  /usr/bin/make install  -- OK
# 

完成