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

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.



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


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.