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."


In reply to YAML Parsing Errors Using CPAN on Windows by roho

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.