How to fix: 'YAML' not installed when installing XML::Simple?

Deano picture Deano · Mar 12, 2014 · Viewed 43.5k times · Source

I'm trying to install XML::Simple module however I get the following everytime.

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

Can anyone tell me what is problem here? and how to fix it?

Answer

kenorb picture kenorb · May 4, 2015

Try installing YAML directly via cpan, e.g.:

cpan YAML

Source: Re: Installing from CPAN -- YAML