Menu

#5065 CentOS 7: installation of perl(Authen::Libwrap) fails

1.860
open
nobody
None
5
2020-10-11
2017-12-16
No

CentOS Linux release 7.4.1708, kernel 3.10.0-693.11.1.el7.x86_64, Webmin 1.860

With a clean install: "Others" > "Perl modules" > "Suggested modules" > "Install Selected Modules"

All modules correctly install apart from Authen::Libwrap, which fails with the following error:

Executing /usr/bin/perl Makefile.PL  && make ..

Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/libexec/webmin /usr/local/lib64/perl
5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 
/usr/share/perl5 .) at Makefile.PL line 6.
This module requires Module::Build to install itself.

It turns out this error is because the required dependency perl-devel hasn't been installed. On installing this package and re-running the "Install Selected Modules" command, I then get the following error:

Executing /usr/bin/perl Makefile.PL  && make ..

This module requires Module::Build to install itself.
  Install Module::Build now from CPAN? [y] y
Can't locate CPAN.pm in @INC (@INC contains: /usr/libexec/webmin /usr/local/lib64/perl5 /usr/local/s
hare/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/per
l5 .) at Makefile.PL line 16.

So to fix that, I then yum install perl-Module-Build. On re-running "Install Selected Modules" a third time, it then terminates with the following error:

Executing /usr/bin/perl Makefile.PL  && make ..

# running Build.PL 
enter include directory to use: [/usr/include ]/usr/include 
enter library directory to use: [/usr/lib ]/usr/lib 
Warning: ExtUtils::CBuilder not installed or no compiler detected
Proceeding with configuration, but compilation may fail during Build

Checking prerequisites...
  build_requires:
    !  Test::Exception is not installed
    !  Test::More is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions
of the modules indicated above before proceeding with this installation

Run 'Build installdeps' to install missing prerequisites.

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Authen-Libwrap' version '0.23'
/usr/bin/perl Build --makefile_env_macros 1
Module::Build version 0.42 required--this is only version 0.4005 at Build line 41.
make: *** [all] Error 255

Sure enough, yum info perl-Module-Build emits the following:

Name        : perl-Module-Build
Arch        : noarch
Epoch       : 2
Version     : 0.40.05
Release     : 2.el7
Size        : 680 k
Repo        : installed
From repo   : base

So the Module::Build rpm is some way behind the required version.

I've tried using cpanspec / rpmbuild to create my own package from an older version of Authen::Libwrap, but honestly, the quickest 'solution' for now seems to be to use a non-trusted RPM from elsewhere eg pbone.net [.rpm, 0.3MB].

Is it worth incorporating Authen::Libwrap into the standard Webmin distribution to save this headache in future?

Discussion

  • Jamie Cameron

    Jamie Cameron - 2017-12-16

    Unusual that the CPAN module is missing - I thought that was a core part of Perl.

    What happens if you SSH in as root and run perl -MCPAN -e "install Authen::Libwrap"

     
  • Stephen M

    Stephen M - 2020-10-10

    I am having this exact issues on a centos 8

    I see that the original ticket was created in 3 years ago. Any help would be appreciated

     

    Last edit: Stephen M 2020-10-10
  • Jamie Cameron

    Jamie Cameron - 2020-10-11

    You may need to first run yum install perl-CPAN

     

Log in to post a comment.

MongoDB Logo MongoDB