我想安裝XML :: Simple模塊,但是我每次都得到以下內容。如何解決:安裝XML :: Simple時未安裝'YAML'?
cpan install XML::Simple
Going to read '/root/.cpan/Metadata'
Database was generated on Wed, 12 Mar 2014 09:17:02 GMT
Running install for module 'XML::Simple'
Running make for G/GR/GRANTM/XML-Simple-2.20.tar.gz
Checksum for /root/.cpan/sources/authors/id/G/GR/GRANTM/XML-Simple-2.20.tar.gz ok
CPAN.pm: Going to build G/GR/GRANTM/XML-Simple-2.20.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for XML::Simple
Writing MYMETA.yml
GRANTM/XML-Simple-2.20.tar.gz
make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
有誰能告訴我這裏有什麼問題嗎?以及如何解決它?
你有'make'和'YAML'安裝? – blueygh2
看起來你沒有安裝'make'。這是在PC上,還是在Linux上?如果是Linux,則必須確保安裝了C編程工具。如果這是Windows,並且您沒有使用[Strawberry Perl](http://strawberryperl.com),請使用Strawberry Perl。它帶有包含'make'和'gcc'的MIGW環境以及您需要的所有庫。 –
YAML無所謂。 – ikegami