CPAN - yaml_process_error

為{幸葍}努か 提交于 2019-12-12 02:41:34

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!