问题
Hi i've been trying to search for a fix to this but i cant find one. All im trying to do is update my perl modules using
cpan[1]> upgrade
How ever i get the following error.
Catching error: "CPAN::Exception::yaml_process_error=HASH(0x7fd8f39971f8)" at/Library/Perl/Updates/5.16.2/CPAN.pm line 392.
CPAN::shell() called at /Library/Perl/Updates/5.16.2/App/Cpan.pm line 338
App::Cpan::_process_options('App::Cpan') called at /Library/Perl/Updates/5.16.2/App/Cpan.pm line 421
App::Cpan::run('App::Cpan') called at /usr/bin/cpan5.16 line 12
Could someone please help me with this?
Thank you.
回答1:
you can use o conf yaml_module
to get the yaml config, maybe like this:
yaml_module [YAML::XS]
we can use other alternate yaml modules, like YAML
, YAML::Sync
. In my case, YAML
can't process the report file well, so I use YAML::XS
. You can use o conf yaml_module MODULE
to set anyone you like.
来源:https://stackoverflow.com/questions/20207079/cpan-yaml-process-error