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

Hello, I am trying to install a series of Perl modules but there are a few which keep failing. Here are their logs. I am on CentOS 6 with Perl 5.21.2 via perlbrew. The system Perl is 5.10.1. Unfortunately there is nothing newer available in the repository but I didn't want to risk changing Perl, so I went to Perlbrew. I should mention that I was able able to install all of these packages on the system perl via CentOS packages just fine but Perlbrew does not see those packages and so it needs them reinstalled via a different method (I've been using cpanm).

EDIT: After installing openssl-devel, SSLeay appeared to install just fine. I was confused because it didn't install at first. It didn't appear to take effect until several minutes later. Thanks in advance. I'm now trying to install these:

Mail::SPF
Mail::SPF::Query
NetSNMP::agent
File::Scan::ClamAV

Replies are listed 'Best First'.
Re: module errors everywhere
by Anonymous Monk on Aug 04, 2014 at 13:34 UTC
    SSLeay.xs:163:25: error: openssl/err.h: No such file or directory SSLeay.xs:164:27: error: openssl/lhash.h: No such file or directory SSLeay.xs:165:26: error: openssl/rand.h: No such file or directory SSLeay.xs:166:28: error: openssl/buffer.h: No such file or directory SSLeay.xs:167:25: error: openssl/ssl.h: No such file or directory SSLeay.xs:168:28: error: openssl/pkcs12.h: No such file or directory SSLeay.xs:169:74: error: openssl/comp.h: No such file or directory SSLeay.xs:171:25: error: openssl/md2.h: No such file or directory SSLeay.xs:173:25: error: openssl/md4.h: No such file or directory SSLeay.xs:174:93: error: openssl/md5.h: No such file or directory SSLeay.xs:178:26: error: openssl/x509.h: No such file or directory SSLeay.xs:179:28: error: openssl/x509v3.h: No such file or directory

    Do you have the OpenSSL development package (headers etc.) installed?

      Hello and yes, I just checked. Package openssl-devel-1.0.1e-16.el6_5.14.x86_64 already installed and latest version. I also just updated the original post.

        The README mentions an OPENSSL_PREFIX environment variable as well as a --prefix Configure option that you apparently can use to explicitly point the build process to the OpenSSL location. Try that perhaps?

Re: module errors everywhere
by McA (Priest) on Aug 04, 2014 at 14:14 UTC

    Hi,

    do you want to play with Perl 5.21.2 or do you like "just" newer versions of some CPAN modules?

    I'm asking because I'm quite happy with installing newer CPAN modules to a seperate directory via App::cpanminus and using the system's Perl 5.10.1 together with local::lib.

    Regards
    McA

      Unfortunately I have to use a newer version of Perl in order to run ASSP, an open-source spam filter.

        Oh, that's intersting. Which part of ASSP needs a newer version than 5.10.0 of Perl?

        Regards
        McA

Re: module errors everywhere
by Toasterman (Novice) on Aug 04, 2014 at 17:32 UTC

    Thanks everyone. I switched to Perl 5.16 in perlbrew to see if it made a difference but it doesn't. I updated the original post with what I did to get SSLeay installed. Also, I get this error when I'm trying to install NetSNMP::agent
    Is it safe to force the installation?

      Hi

      there should be a vendor packaged rpm 'net-snmp-perl'. I'm pretty sure that this rpm fits the net-snmp library and hopefully fulfills the requirements for APPS.

      Give it a try.

      Regards
      McA

        That works for my system perl but it will not work for perlbrew installations, unfortunately. Is there any way to just copy the files over or would that not be good?
Re: module errors everywhere
by Toasterman (Novice) on Aug 05, 2014 at 17:41 UTC

    Some searching led me to believe it's a misbehaving module for Mail::SPF and Mail::SPF::Query... Net-DNS-Resolver-Programmable.

    https://rt.cpan.org/Public/Bug/Display.html?id=95901
    How do I apply the patch?

    EDIT: Nevermind, I just had to use the patch utility. That was easy. It still won't let me install either though. I'm getting a new error for Mail::SPF

      I found out the NET-DNS module was the issue. I had to go back to version 0.67 but at least the Mail::SPF module installed correctly now.
Re: module errors everywhere
by Toasterman (Novice) on Aug 06, 2014 at 15:34 UTC
    Mail::SPF::Query gives the following error:

      Toasterman:

      From the documentation:

      unknown [...]
      The domain has a configuration error in the published data or defines a mechanism that this library does not understand. If the data contained an unrecognized mechanism, it will be presented following "unknown". You should test for unknown using a regexp /^unknown/ rather than eq "unknown".

      So I'd suggest checking checking the configuration of your server (if you control it) or contacting the sysadmin to find out if there are any configuration problems. If it's operating correctly and you're getting unknown then it doesn't look like you'll be able to use the module, as it apparently doesn't support the feature, or has an unsupported policy set up.

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.

        Thank you, but I'm as close to a sysadmin as this place has and I'm not aware of any configuration problems. I had this installed on my system perl just fine by using the CentOS repository package. Why would it work on a different location on the same system?