Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Winxp, AS perl 5.10 and cpan error

by grizzley (Chaplain)
on Aug 22, 2008 at 07:39 UTC ( [id://706074] : perlquestion . print w/replies, xml ) Need Help??

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

I finally installed ActiveState perl 5.10 and started working with it. Its nice. But when I try to run cpan, I get an error, which blocks all tasks:
cpan> i /Run/ CPAN: Storable loaded ok (v2.18) Going to read C:\Perl\cpan\Metadata Database was generated on Wed, 06 Aug 2008 10:02:50 GMT CPAN: LWP::UserAgent loaded ok (v5.810) CPAN: Time::HiRes loaded ok (v1.9711) Fetching with LWP: http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz CPAN: YAML::XS loaded ok (v0.26) 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_str) at C:\Perl\lib/YAML/XS.pm l +ine 70.
Does anyone know how to fix it? I have a talk about Perl (at work for other employees to populate Perl) in my schedule next Wednesday and would be really happy if didn't have to go back to perl 5.8, which worked without such error.

Replies are listed 'Best First'.
Re: Winxp, AS perl 5.10 and cpan error
by jand (Friar) on Aug 23, 2008 at 01:17 UTC
    Edit C:\Perl\lib\CPAN\Config.pm and change the yaml_module entry from
    'yaml_module' => q[YAML::XS],
    to
    'yaml_module' => q[],
      That's fixed it! Thank a lot!
      d@mn, $#!t worked for me too. Thanks dawg
        By now ActivePerl 5.10.0.1004 has been released, which contains a fixed YAML::LibYAML module, so it is no longer necessary to disable the yaml_module in the CPAN configuration.
Re: Winxp, AS perl 5.10 and cpan error
by Anonymous Monk on Aug 22, 2008 at 07:47 UTC
    1. Google it. 2. Turn on debugging/verbosity 3. Try using cpanp (core since 5.009005)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://706074]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-02-05 21:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found