http://www.perlmonks.org?node_id=821624

roho has asked for the wisdom of the Perl Monks concerning the following question:

I am consistently getting YAML parsing errors trying to install modules on Windows using cpan (see output below). I have tried deleting the 'cpan' directory under 'C:\Perl' and rerunning the cpan install, but I get the same errors. Any ideas on how I might correct this?

I am running Activestate Perl 5.8.9. I first tried using 'ppm' but 'HTML::TreeBuilder' was not in Activestate's archive, hence the attempt to use 'cpan'.

TIA, Roy

C:\>cpan cpan shell -- CPAN exploration and modules installation (v1.9402) Enter 'h' for help. cpan> install HTTP::TreeBuilder Fetching with LWP: http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz Going to read 'C:\Perl\cpan\sources\authors\01mailrc.txt.gz' ...................................................................... +......DONE Fetching with LWP: http://ppm.activestate.com/CPAN/modules/02packages.details.txt.gz Alert: While trying to 'parse' YAML file 'C:\Perl\cpan\FTPstats.yml' with 'YAML::XS' the following error was encountered: Usage: YAML::XS::LibYAML::Load(yaml_sv) at C:\Perl\lib/YAML/XS.pm li +ne 70. Going to read 'C:\Perl\cpan\sources\authors\01mailrc.txt.gz' ...................................................................... +......DONE Going to read 'C:\Perl\cpan\sources\modules\02packages.details.txt.gz' Database was generated on Wed, 03 Feb 2010 22:45:58 GMT ...................................................................... +......DONE Fetching with LWP: http://ppm.activestate.com/CPAN/modules/03modlist.data.gz Alert: While trying to 'parse' YAML file 'C:\Perl\cpan\FTPstats.yml' with 'YAML::XS' the following error was encountered: Usage: YAML::XS::LibYAML::Load(yaml_sv) at C:\Perl\lib/YAML/XS.pm li +ne 70. Lockfile removed.
C:\>

"Its not how hard you work, its how much you get done."