Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 17
  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    146

    Default Mail::SPF fails to install

    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. #2
    Member
    Join Date
    Dec 2009
    Posts
    8

    Default

    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

    Quote Originally Posted by sharmaine001 View Post
    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?

  3. #3
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    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. #4
    h4f
    h4f is offline
    Member
    Join Date
    Jun 2007
    Posts
    63

    Default

    Quote Originally Posted by mocollin View Post
    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

    Same issue here.

  5. #5
    h4f
    h4f is offline
    Member
    Join Date
    Jun 2007
    Posts
    63

    Default

    Quote Originally Posted by madaboutlinux View Post
    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.
    Even manually it doesn't work.

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

  6. #6
    Member
    Join Date
    Dec 2009
    Posts
    8

    Default

    Quote Originally Posted by h4f View Post
    Even manually it doesn't work.

    Tried to change version nummers in the tarball but then a complaint about signatures.
    Yeah. It seems somehow an incompatible version of Mail::SPF got into the update chain.

    Anyone have other ideas for a fix?

  7. #7
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    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. #8
    Member
    Join Date
    Dec 2009
    Posts
    8

    Default

    Quote Originally Posted by cPanelDon View Post
    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
    This worked perfectly. Mail::SPF 2.007 now installed on my 11.25 system. Thank you!

  9. #9
    Registered User
    Join Date
    Feb 2008
    Posts
    1

    Default

    Quote Originally Posted by cPanelDon View Post
    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
    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. #10
    Member
    Join Date
    Mar 2008
    Posts
    28

    Default

    Quote Originally Posted by cPanelDon View Post
    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
    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. #11
    Member
    Join Date
    Jun 2006
    Posts
    146

    Default 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. #12
    Member
    Join Date
    Apr 2003
    Posts
    21

    Default

    Same problem here - happened last night.

  13. #13
    Registered User
    Join Date
    Aug 2007
    Posts
    1

    Smile Same problem

    I got the same email message overnight on a VPS with our hosting company. I dug a little deeper and found this post back about 1 month.

    Mail::SPF fails to install

    figured I would post a link here to help people since this was the first result in Google.

  14. #14
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Arrow 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. #15
    Member
    Join Date
    Dec 2008
    Posts
    6

    Default 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:NS::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:NS::Resolver::Programmable to version 0.003

    tried again, same error.

    Is there a solution?

Similar Threads & Tags
Similar threads

  1. install domain keys & spf record
    By crazyaboutlinux in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-13-2010, 08:12 AM
  2. Mail-SPF-v2.005 trying to install every night in upcp
    By verdon in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 09-27-2007, 01:18 AM
  3. mail::spf::query
    By jameshsi in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-26-2005, 12:38 PM
  4. cPanel install fails to install MySQL
    By mstyne in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-13-2005, 05:11 PM
  5. RPM install fails - dependencies - auto install?
    By rjn in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-07-2003, 01:19 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube