The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mail::SPF fails to install

Discussion in 'E-mail Discussions' started by sharmaine001, Dec 25, 2009.

  1. sharmaine001

    sharmaine001 Well-Known Member

    Joined:
    Jun 23, 2006
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    Hello

    I found out that Mail::SPF is failing. When checked, its because the server is using the latest version of perl 5.8.8 and looks like Mail::SPF is no longer compatible and it is compatible only to 5.6

    What do you think the solution for this?
     
  2. mocollin

    mocollin Member

    Joined:
    Dec 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I'm unable to install Mail::SPF either. Running 11.25.0-RELEASE_42399

    Here is the output from /scripts/checkperlmodules


    Code:
     CPAN.pm: Going to build J/JM/JMEHNLE/mail-spf/Mail-SPF-v2.007.tar.gz
    
    perl-64bit-hack: enabled
    # running Build.PL --otherldflags -L/usr/lib64 --config ldflags=-L/usr/lib64 --extralibdir /usr/lib64
    Creating new 'MYMETA.yml' with configuration results
    Creating new 'Build' script for 'Mail-SPF' version 'v2.7.0'
    Prereq 'v5.6' for 'perl' is not supported by Module::Build::Compat
    make: *** No targets.  Stop.
     JMEHNLE/mail-spf/Mail-SPF-v2.007.tar.gz
     /usr/bin/make OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 -- NOT OK
    Running make install
     Make had returned bad status, install seems impossible
    perlmod--Install done
    

     
  3. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    well, you have to install the module manually as it looks like some kind of a bug. Download the mail::spf module from cpan.org and install.
     
  4. h4f

    h4f Well-Known Member

    Joined:
    Jun 5, 2007
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6

    Same issue here.
     
  5. h4f

    h4f Well-Known Member

    Joined:
    Jun 5, 2007
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Even manually it doesn't work.

    Tried to change version nummers in the tarball but then a complaint about signatures.
     
  6. mocollin

    mocollin Member

    Joined:
    Dec 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Yeah. It seems somehow an incompatible version of Mail::SPF got into the update chain.

    Anyone have other ideas for a fix?
     
  7. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I've split the posts about Mail::SPF into a new thread dedicated to the separate issue.

    I was able to reproduce this on a test system by uninstalling Mail::SPF then attempting to re-install; further investigation will be needed to determine the exact cause, but I was able to confirm a set of steps you may use for re-installing the "Mail::SPF" Perl module.

    Please use the following command to perform the install:
    Code:
    # perl -MCPAN -e "get('Mail::SPF')" && cd /home/.cpan/sources/authors/id/J/JM/JMEHNLE/mail-spf && tar -xzvf Mail-SPF-v2.007.tar.gz && cd Mail-SPF-v2.007 && perl Build.PL && ./Build && ./Build test && ./Build install && /scripts/checkperlmodules --full
    As an alternative, to help clarify the steps used by the above command, here is each step on its own line:
    Code:
    # perl -MCPAN -e "get('Mail::SPF')"
    # cd /home/.cpan/sources/authors/id/J/JM/JMEHNLE/mail-spf
    # tar -xzvf Mail-SPF-v2.007.tar.gz
    # cd Mail-SPF-v2.007
    # perl Build.PL
    # ./Build
    # ./Build test
    # ./Build install
    # /scripts/checkperlmodules --full
     
  8. mocollin

    mocollin Member

    Joined:
    Dec 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    This worked perfectly. Mail::SPF 2.007 now installed on my 11.25 system. Thank you!
     
  9. SecHost-IT

    SecHost-IT Registered

    Joined:
    Feb 8, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Looks like that's not enough here. however If you got any errors about dependency, type this command

    Code:
    ./Build installdeps 
    before

    Code:
    ./Build

    Thanks!
     
  10. morefood2001

    morefood2001 Active Member

    Joined:
    Mar 18, 2008
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    I got the same problem on my cpanel server. Last night, the datacenter accidentally wiped out the wrong drive and I ended up reinstalling cpanel. It seems that when I dropped the backup of the cpanel directory into the restored server, this error cropped up. The solution above fixed it and a bunch of other errors I was getting related to spamassassin.

    Details:
    cPanel 11.25.0-R42399 - WHM 11.25.0 - X 3.9
    CENTOS 5.4 i686 standard on int
     
  11. sharmaine001

    sharmaine001 Well-Known Member

    Joined:
    Jun 23, 2006
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    error MAIL::SPF Could not be installed --> how to resolve?

    I am getting notification even after re-installing perl modules that MAIL::SPF could not be installed

    see the logs below:

    This module is required by cPanel, and the system may not function correctly until it is installed, and functional. Below is the results of the auto-install attempt:

    Test Run
    ==============
    Can't locate Mail/SPF.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at - line 1.
    BEGIN failed--compilation aborted at - line 1.


    Installer Run
    ==============
    commit: wrote '/usr/local/lib/perl5/5.8.8/CPAN/Config.pm'
    CPAN: Storable loaded ok (v2.21)
    Going to read /home/.cpan/Metadata
    Database was generated on Tue, 12 Jan 2010 09:00:52 GMT
    Running install for module 'Mail::SPF'
    Running make for J/JM/JMEHNLE/mail-spf/Mail-SPF-v2.007.tar.gz
    CPAN: Digest::SHA loaded ok (v5.48)
    CPAN: Compress::Zlib loaded ok (v2.017)
    Checksum for /home/.cpan/sources/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v2.007.tar.gz ok
    Mail-SPF-v2.007
    Mail-SPF-v2.007/MANIFEST
    Mail-SPF-v2.007/TODO
    Mail-SPF-v2.007/CHANGES
    Mail-SPF-v2.007/META.yml
    Mail-SPF-v2.007/MANIFEST.SKIP
    Mail-SPF-v2.007/INSTALL
    Mail-SPF-v2.007/README
    Mail-SPF-v2.007/Makefile.PL
    Mail-SPF-v2.007/LICENSE
    Mail-SPF-v2.007/Build.PL
    Mail-SPF-v2.007/SIGNATURE
    Mail-SPF-v2.007/lib
    Mail-SPF-v2.007/lib/Mail
    Mail-SPF-v2.007/lib/Mail/SPF.pm
    Mail-SPF-v2.007/lib/Mail/SPF
    Mail-SPF-v2.007/lib/Mail/SPF/Server.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Util.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Mod.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Result.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Request.pm
    Mail-SPF-v2.007/lib/Mail/SPF/MacroString.pm
    Mail-SPF-v2.007/lib/Mail/SPF/SenderIPAddrMech.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Exception.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Base.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Term.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Mech.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Record.pm
    Mail-SPF-v2.007/lib/Mail/SPF/v1
    Mail-SPF-v2.007/lib/Mail/SPF/v1/Record.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Mod
    Mail-SPF-v2.007/lib/Mail/SPF/Mod/Redirect.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Mod/Exp.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Mech
    Mail-SPF-v2.007/lib/Mail/SPF/Mech/PTR.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Mech/A.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Mech/All.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Mech/IP6.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Mech/MX.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Mech/Include.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Mech/Exists.pm
    Mail-SPF-v2.007/lib/Mail/SPF/Mech/IP4.pm
    Mail-SPF-v2.007/lib/Mail/SPF/v2
    Mail-SPF-v2.007/lib/Mail/SPF/v2/Record.pm
    Mail-SPF-v2.007/debian
    Mail-SPF-v2.007/debian/libmail-spf-perl.install
    Mail-SPF-v2.007/debian/spf-tools-perl.postinst
    Mail-SPF-v2.007/debian/rules
    Mail-SPF-v2.007/debian/compat
    Mail-SPF-v2.007/debian/changelog
    Mail-SPF-v2.007/debian/watch
    Mail-SPF-v2.007/debian/spf-tools-perl.prerm
    Mail-SPF-v2.007/debian/copyright
    Mail-SPF-v2.007/debian/spf-tools-perl.install
    Mail-SPF-v2.007/debian/control
    Mail-SPF-v2.007/bin
    Mail-SPF-v2.007/bin/spfquery
    Mail-SPF-v2.007/t
    Mail-SPF-v2.007/t/Mail-SPF-Test-lib.pm
    Mail-SPF-v2.007/t/90-author-pod-validation.t
    Mail-SPF-v2.007/t/00.01-class-util.t
    Mail-SPF-v2.007/t/10.00-rfc4408.t
    Mail-SPF-v2.007/t/rfc4408-tests.yml
    Mail-SPF-v2.007/t/10.01-rfc4406.t
    Mail-SPF-v2.007/t/00.04-class-server.t
    Mail-SPF-v2.007/t/00.05-class-macrostring.t
    Mail-SPF-v2.007/t/00.00-class-misc.t
    Mail-SPF-v2.007/t/00.02-class-request.t
    Mail-SPF-v2.007/t/rfc4406-tests.yml
    Mail-SPF-v2.007/t/00.99-class-misc.t
    Mail-SPF-v2.007/t/00.03-class-result.t
    Mail-SPF-v2.007/sbin
    Mail-SPF-v2.007/sbin/spfd
    CPAN: File::Temp loaded ok (v0.22)
    CPAN: YAML loaded ok (v0.71)
    CPAN: Module::Build loaded ok (v0.3601)

    CPAN.pm: Going to build J/JM/JMEHNLE/mail-spf/Mail-SPF-v2.007.tar.gz

    perl-64bit-hack: enabled
    # running Build.PL --otherldflags -L/usr/lib64 --config ldflags=-L/usr/lib64 --extralibdir /usr/lib64
    Creating new 'MYMETA.yml' with configuration results
    Creating new 'Build' script for 'Mail-SPF' version 'v2.7.0'
    Prereq 'v5.6' for 'perl' is not supported by Module::Build::Compat
    make: *** No targets. Stop.
    JMEHNLE/mail-spf/Mail-SPF-v2.007.tar.gz
    /usr/bin/make OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 -- NOT OK
    Running make install
    Make had returned bad status, install seems impossible
    perlmod--Install done
     
  12. IIIBradIII

    IIIBradIII Member

    Joined:
    Apr 13, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Same problem here - happened last night.
     
  13. granville

    granville Registered

    Joined:
    Aug 16, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
  14. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Friendly Moderator Note

    I've merged two threads regarding the same about difficulty installing Mail::SPF. For reference, here is a link to the specific post within the combined thread that details corrective steps: Mail::SPF fails to install - cPanel Forums
     
  15. jbatson

    jbatson Member

    Joined:
    Dec 10, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Error installing perl module Mail::SPF

    Cpanel was complaining about the perl version to install perl module Mail::SPF.

    Can't locate Mail/SPF.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at - line 1.
    BEGIN failed--compilation aborted at - line 1.


    CPAN.pm: Going to build J/JM/JMEHNLE/mail-spf/Mail-SPF-v2.007.tar.gz

    # running Build.PL
    Creating new 'MYMETA.yml' with configuration results
    Creating new 'Build' script for 'Mail-SPF' version 'v2.7.0'
    Prereq 'v0.002.1' for 'Net::DNS::Resolver::Programmable' is not supported by Module::Build::Compat
    make: *** No targets. Stop.
    JMEHNLE/mail-spf/Mail-SPF-v2.007.tar.gz
    /usr/bin/make -- NOT OK
    Running make install
    Make had returned bad status, install seems impossible
    perlmod--Install done



    Perl version was 5.8.5, upgraded to 5.8.8 without problem.

    Tried to install Mail::SPF from whm install perl modules, but get the same error.

    upgraded Net::DNS::Resolver::Programmable to version 0.003

    tried again, same error.

    Is there a solution?
     
  16. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
  17. jbatson

    jbatson Member

    Joined:
    Dec 10, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    That worked, thanks.
     
Loading...

Share This Page