Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Error When Using CPAN Module

by perl.j (Pilgrim)
on Aug 19, 2011 at 02:46 UTC ( [id://921127]=perlquestion: print w/replies, xml ) Need Help??

perl.j has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I tried using the cpan command line module for the first time (I am using ActivePerl and usually use PPM). I tried installing a module by doing the following...:

cpan HTML::EP

...and got this output:

Set up gcc environment - 3.4.5 (mingw-vista special r3) CPAN: Term::ANSIColor loaded ok (v3.00) CPAN: Storable loaded ok (v2.22) Going to read 'C:\Perl\cpan\Metadata' Database was generated on Wed, 17 Aug 2011 10:30:22 GMT CPAN: LWP::UserAgent loaded ok (v6.02) CPAN: Time::HiRes loaded ok (v1.9721) Fetching with LWP: http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz CPAN: YAML::XS loaded ok (v0.35) Error reading 'C:\Perl\cpan\FTPstats.yml': Alert: While trying to 'par +se' YAML f ile '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 48. Stashing away as 'C:\Perl\cpan\FTPstats.yml.1313721059' to prevent fur +ther inter ruptions. You may want to remove that file later. Could not rename: Permission denied

Why does the process stop at Could not rename: Permission denied? Thanks in advance.

--perl.j

Replies are listed 'Best First'.
Re: Error When Using CPAN Module
by Khen1950fx (Canon) on Aug 19, 2011 at 03:30 UTC
    From the cpan shell:
    install Bundle::HTML::EP
    If that doesn't work:
    ppm install HTML::EP
Re: Error When Using CPAN Module
by Anonymous Monk on Aug 19, 2011 at 03:41 UTC

    Why does the process stop at Could not rename: Permission denied? Thanks in advance.

    <SmartAnony intensty="11">Why do you care? Because its programmed that way.</SmartAnony>

    Delete file, and get on with your life :)

    See also YAML Parsing Errors Using CPAN on Windows and disable yaml in CPAN::MyConfig (wherever it is, %UserProfile%\.cpan\CPAN\MyConfig.pm or C:\Perl\cpan\CPAN\MyConfig.pm...)

    Reading the manual is fundamental
      Thanks, this worked.
      --perl.j
Re: Error When Using CPAN Module
by pvaldes (Chaplain) on Aug 19, 2011 at 08:59 UTC
    First open cpan and write: cpan> install HTML::EP

    and them you will need to answer several questions (the default values for the program inside [])

    Enter an email address for sending test mails: [none] Enter a mail server for sending mails: [127.0.0.1] Security: Enter a regular expression for hosts that may enter debuggin +g mode: [^(?:127\.0\.0\.1$|192\.168\.)] Security: Enter a regular expression for files that may be processed b +y EP: [\.ep$] The HTML::EP module can be optimized for fast compilation or fast star +tup. The former is recommended in traditional CGI binaries, the latte +r for mod_perl. Shall I optimize for fast startup, aka mod_perl? [y] Enter the default language, for example de (German) or en (English): +[de]
    It could be interesting to discuss a little about best alternatives to fill the Security questions, żany idea?

      Exactyl, first open cpan and...

      Thats OPs whole problem, can't run cpan shell

      It could be interesting to discuss a little about best alternatives to fill the Security questions, żany idea?

      The best alternative to what? New questions go in Seekers of Perl Wisdom, see Where should I post X?

        > The best alternative to what? New questions go in Seekers of Perl Wisdom, see Where should I post X?

        Well, that's only an idea that I think could enrich this post, I retire the offending question them, please forget all about it

        If OP can't run cpan them he/she should install cpan before (obviously), I was (erroneusly) assuming that cpan was already installed.

        http://www.perlmonks.org/?node_id=583586
Re: Error When Using CPAN Module
by pvaldes (Chaplain) on Aug 19, 2011 at 11:12 UTC

    > The whole problem of OP is than can't run cpan

    If OP can't run cpan, cpan is not installed

    > CPAN is installed

    Them the first line is false AND/OR the second line must be improved:

    If OP can't run cpan, cpan is not installed _or_ is broken

    ...and the solution for this in both cases is to reinstall, as I say previously

    If cpan is correctly installed OP _CAN_ run cpan, so please, could explain why do you say the opposite?. Maybe you are trying to say that you think the cpan is broken? why do you think this?

    This leads us to the starting point. The whole problem of OP is most probably that OP is not using correctly CPAN. the right use is:

    cpan> install Some::Module

      Why are you responding to the OP? Clicking the correct reply/comment on link is important

      As for everything else , if you're going to troll, learn what you're talking about first

Log In?
Username:
Password:

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

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

    No recent polls found