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

force install in cpan

by Anonymous Monk
on Mar 27, 2007 at 15:09 UTC ( #606768=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Cher Moines
I am somewhat confused. I attempted to install a module using:
perl -MCPAN -e "force install IO::Socket::SSL"

and it rather unaccountably responded (ultimately) with:
  make test had returned bad status, won't install without force
This was, to say the least, a little unexpected as I had used 'force'. I'm not particularly concerned about the error thrown by make test. I've been using an install of IO::Socket::SSL for ages that gave the same error at test time. But I'm not just trying to get IO::Socket::SSL working on a particular machine. I'm wanting to use CPAN to deploy a couple of modules on a load of different sites, so I need something repeatable that will work.
Does anyone know how I might talk more sternly to 'install' to make it continue?
A humble neophyte

Comment on force install in cpan
Select or Download Code
Replies are listed 'Best First'.
Re: force install in cpan
by jettero (Monsignor) on Mar 27, 2007 at 15:24 UTC

    I usually use this mess: perl -MCPAN -e "CPAN::Shell->force(qw(install IO::Socket::SSL));"

    It's not exactly intuitive and there may be a better way... but it works. It also hints at a larger API (CPAN, CPAN::Shell), which appears to have grown rather organically IMO.

    -Paul

      Wow.

      ... and quick too

      I am not worthy

        ... and quick too

        It's all a matter of how big your generic cut and paste repository is. I happened to remember where to cut and paste from really fast. That is all. Keep everything and keep it well sorted.

        -Paul

Re: force install in cpan
by Thelonius (Priest) on Mar 27, 2007 at 15:30 UTC
    Try all caps, some exclamation marks and swearing
    perl -MCPAN -e "FORCE! INSTALL! IO::Socket::SSL DAMMIT!"
      This answer is far more appealing that the one that actually works. However I will ungratefully go with the latter.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (18)
As of 2015-08-05 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (81 votes), past polls