Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: CPAN force install of PersistentPerl fails to install

by Anonymous Monk
on Apr 09, 2008 at 03:19 UTC ( [id://679140]=note: print w/replies, xml ) Need Help??


in reply to CPAN force install of PersistentPerl fails to install

cpan notest install ...

Replies are listed 'Best First'.
Re^2: CPAN force install of PersistentPerl fails to install
by nenbrian (Acolyte) on Apr 09, 2008 at 18:51 UTC
    Wow, oddly that worked. I had previously thought that notest() was like force(), in that it actually did something. I was calling force() like this:
    $obj->force('install');

    But that wasn't working. So I tried calling notest() in the same way:
    $obj->notest('install');

    This isn't documented anywhere, but I just generalized from the force() method usage. However, looking at the CPAN.pm code, the notest() method just sets a 'notest' flag in the module object. So after seeing your reply, I decided to look into notest() again. This is what I eventually found works:
    $obj->notest(); $obj->install();

    I need (or at least would prefer) to be able to do this using the CPAN API, rather than running the cpan utility as an external program, and now it looks like I can.

    Thanks for the response.
Re^2: CPAN force install of PersistentPerl fails to install (cpan[1]> force notest install PersistentPerl )
by Anonymous Monk on Feb 26, 2013 at 08:34 UTC
    To force install parent without testing use cpan -f -i -T PersistentPerl

    Or from cpan shell cpan[1]> force notest install PersistentPerl

Log In?
Username:
Password:

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

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

    No recent polls found