Toubles installation on centos7 64bit

molenfreak

New member
Joined
Aug 28, 2016
Messages
5
Edit: Solution below
-------------

hello,

i want to install spamAssassin, but doesn't matter how i try i always and with the same problem.
This is a try with custombuild2:

Running sa-update.
Insecure dependency in require while running with -T switch at /usr/local/share/perl5/Net/DNS/Resolver/Base.pm line 570.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Net/DNS/Resolver/Base.pm line 570.
Compilation failed in require at (eval 20) line 2.
...propagated at /usr/share/perl5/base.pm line 84.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Net/DNS/Resolver/UNIX.pm line 18.
Compilation failed in require at (eval 19) line 2.
...propagated at /usr/share/perl5/base.pm line 84.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Net/DNS/Resolver.pm line 22.
Compilation failed in require at /usr/local/share/perl5/Net/DNS.pm line 51.
Compilation failed in require at /usr/bin/sa-update line 84.
BEGIN failed--compilation aborted at /usr/bin/sa-update line 84.


cpan --version
/usr/bin/cpan version 1.57 calling Getopt::Std::getopts (version 1.07 [paranoid]),
running under Perl version 5.16.3.
[Now continuing due to backward compatibility and excessive paranoia.
See 'perldoc Getopt::Std' about $Getopt::Std::STANDARD_HELP_VERSION.]



i tried installing older versions of Net dns but its always the same error.

anyone who can help with this?
 
In one of the previous versions of Net::DNS they made some changes causing several issues with spamassassin.
You might try to install Net::DNS from CPAN if you did not try that already yet.
 
How did you resolve that?
hello,

i want to install spamAssassin, but doesn't matter how i try i always and with the same problem.
This is a try with custombuild2:

Running sa-update.
Insecure dependency in require while running with -T switch at /usr/local/share/perl5/Net/DNS/Resolver/Base.pm line 570.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Net/DNS/Resolver/Base.pm line 570.
Compilation failed in require at (eval 20) line 2.
...propagated at /usr/share/perl5/base.pm line 84.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Net/DNS/Resolver/UNIX.pm line 18.
Compilation failed in require at (eval 19) line 2.
...propagated at /usr/share/perl5/base.pm line 84.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Net/DNS/Resolver.pm line 22.
Compilation failed in require at /usr/local/share/perl5/Net/DNS.pm line 51.
Compilation failed in require at /usr/bin/sa-update line 84.
BEGIN failed--compilation aborted at /usr/bin/sa-update line 84.


cpan --version
/usr/bin/cpan version 1.57 calling Getopt::Std::getopts (version 1.07 [paranoid]),
running under Perl version 5.16.3.
[Now continuing due to backward compatibility and excessive paranoia.
See 'perldoc Getopt::Std' about $Getopt::Std::STANDARD_HELP_VERSION.]



i tried installing older versions of Net dns but its always the same error.

anyone who can help with this?
 
What does
Code:
cpan -D Net::DNS
show?

After manualy install : https://help.directadmin.com/item.php?id=620&in1=1.05

cpan -D Net::DNS
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.cpan/Metadata'
Database was generated on Fri, 02 Sep 2016 08:41:02 GMT
Net::DNS
-------------------------------------------------------------------------
(no description)
N/NL/NLNETLABS/Net-DNS-1.06.tar.gz
/root/perl5/lib/perl5/Net/DNS.pm
Installed: 1.05
CPAN: 1.06 Not up to date
NLnet Labs (NLNETLABS)
[email protected]
 
[root@coyote ~]# cpan -D Net::DNS

Reading '/root/.cpan/Metadata'
Database was generated on Sun, 28 Aug 2016 01:17:02 GMT
Fetching with LWP:
http://www.pirbot.com/mirrors/cpan/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://www.pirbot.com/mirrors/cpan/modules/0****kages.details.txt.gz
Reading '/root/.cpan/sources/modules/0****kages.details.txt.gz'
Database was generated on Fri, 02 Sep 2016 01:29:02 GMT
.............
New CPAN.pm version (v2.14) available.
[Currently running version is v1.9800]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.


...............................................................DONE
Fetching with LWP:
http://www.pirbot.com/mirrors/cpan/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Net::DNS
-------------------------------------------------------------------------
(no description)
N/NL/NLNETLABS/Net-DNS-1.06.tar.gz
/root/perl5/lib/perl5/Net/DNS.pm
Installed: 1.01
CPAN: 1.06 Not up to date
NLnet Labs (NLNETLABS)
[email protected]
 
Reading '/root/.cpan/Metadata'
Database was generated on Fri, 02 Sep 2016 01:29:02 GMT
Net::DNS
-------------------------------------------------------------------------
(no description)
N/NL/NLNETLABS/Net-DNS-1.06.tar.gz
/root/perl5/lib/perl5/Net/DNS.pm
Installed: 1.01
CPAN: 1.06 Not up to date
NLnet Labs (NLNETLABS)
[email protected]
 
Hello,

I've just logged in to a box to resolve this issue, and had some extra steps:
  1. Edit /root/.bashrc and comment out the 5 perl export lines that were added to the bottom of the file.
  2. Type
    Code:
    su -
    to load a clean shell, and then
    Code:
    echo $PATH
    to confirm that /root/perl5/bin is not in the variable (to confirm that the other 4 variables are also not loaded)
  3. I removed these rpms.. not sure if they were related or affecting things, but wanted to rule them out as a factor
    Code:
    rpm -e  perl-Net-DNS perl-Mail-DKIM perl-Mail-SPF
  4. Re-install Net::DNS 1.05 as per https://help.directadmin.com/item.php?id=620&in1=1.05
  5. Re-installed SpamAssassin without issues
    Code:
    cd /usr/local/directadmin/custombuild
    ./build spamassassin

John
 
You are a hero!
Worked like a charm! :)

Code:
Running sa-update.
Starting SpamAssassin.
Restarting exim.


Hello,

I've just logged in to a box to resolve this issue, and had some extra steps:
  1. Edit /root/.bashrc and comment out the 5 perl export lines that were added to the bottom of the file.
  2. Type
    Code:
    su -
    to load a clean shell, and then
    Code:
    echo $PATH
    to confirm that /root/perl5/bin is not in the variable (to confirm that the other 4 variables are also not loaded)
  3. I removed these rpms.. not sure if they were related or affecting things, but wanted to rule them out as a factor
    Code:
    rpm -e  perl-Net-DNS perl-Mail-DKIM perl-Mail-SPF
  4. Re-install Net::DNS 1.05 as per https://help.directadmin.com/item.php?id=620&in1=1.05
  5. Re-installed SpamAssassin without issues
    Code:
    cd /usr/local/directadmin/custombuild
    ./build spamassassin

John
 
not sure if they were related or affecting things
I don't know about DKIM but Mail-SPF is used to check SPF records, so if you remove perl-mail-SPF you have to install Mail::SPF from cpan to keep the SPF check functionality if I'm not mistaken.
 
I have similar problem with Mail :: DKIM. I have all modules but spamassassin -D --lint shows:
Code:
 January 17 16: 29: 54.157 [60134] dbg: dkim: signature verification disabled, DNS resolving not available [/ CODE]

and I have the Net :: DNS module installed:
[CODE] -D cpan Net :: DNS
Reading '/root/.cpan/Metadata'
**Database was generated on Tue, 17 Jan 2017 8:41:02 GMT
Net :: DNS
-------------------------------------------------- -----------------------
********(No description)
********N / NL / NLNETLABS / Net-DNS-1.07.tar.gz
********/usr/local/share/perl/5.20.2/Net/DNS.pm
********Installed: 1.07
********CPAN: 1.07 up to date
********NLnet Labs (NLNETLABS)
********[email protected] [/ CODE]

How to configure DKIM test properly?

Regards

Edit:
Nevermind. This is only message. DKIM and SPF check work's ok :].
 
Last edited:
Back
Top