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

Hi,
I have Perl 5.12, for x86_64 on Linux (Fedora 15 64-bit), and I have been trying to install IO::Socket::SSL via cpan, at the command line.

However, cpan seems no use at all, and not only did it fail to retrieve anything from anywhere, it nearly brought the machine crashing down as it went into some sort of berserk mode. I waited for ages, but nothing doing.

I really need this module installed, but am not sure how else to go about getting it onto the machine and installed properly.

cpan has worked okay in the past for some things, but on this one it fails spectacularly.

Any assistance would be much appreciated! Thanks!

Replies are listed 'Best First'.
Re: IO::Socket::SSL - Install Issues
by zentara (Cardinal) on Jun 17, 2012 at 19:51 UTC
    Install it manually. Download the module tarball. Unpack it with "tar -zxvf module.tgz", then "perl Makefile.PL", "make", and as root, "make install". If you do this, and get errors, report here what the error is. It should work with no problems. Not to denigrate the cpan shell, but I always install manually, and only resort to cpan when I have to deal with alot of dependencies.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh
      Thanks for that zentara.

      I'm not familiar with doing this, so excuse my ignorance. However, I've downloaded and extracted, and I now have a directory, named as the module is, inside a local temp directory. Do I need to put this anywhere in particular before I do the "make" bits and pieces? Or does Perl figure it out?
      Thanks!
        I now have a directory, named as the module is

        Just 'cd' into that directory and run 'perl Makefile.PL', etc.

        It doesn't matter where that directory is located.

        Cheers,
        Rob
Re: IO::Socket::SSL - Install Issues
by Khen1950fx (Canon) on Jun 18, 2012 at 11:42 UTC
    If you are using SELinux, then the problem isn't CPAN but SELinux. I was using a very strict enforcement policy, and that was the problem. In order to install IO::Socket::SSL, you must install Crypt::SSLeay, Net::SSLeay, and LWP::Protocol::https. Before you can do that, go to System->Security and Firewall. A widget will open, look for Firewall Options, and put a check on
    Trusted Services: Secure WWW (HTTPS)
    Next, go to
    SELinux Modify SELinux Policy Put a check on the allow boxes for: Admin FTP HTTPD Service rsync
    Close the browser and reboot. Then start the install using CPAN.
      Thanks for the info Khen1950fx. Yes, I do use SELinux, so I guess that probably was the problem. Mind you, I was grateful to learn the makefile stuff anyway, so it was a good learning experience, but I'll remember the SELinux tip for future reference. Thanks!
Re: IO::Socket::SSL - Install Issues
by Anonymous Monk on Jun 18, 2012 at 03:41 UTC

    However, cpan seems no use at all, ....

    Maybe the first thing you should do is updgrade CPAN?

    Or you can use cpanp -i IO::Socket::SSL

    :)

      I did installed the openssl devel package and did the issue.