Failed to install module : One or more of the Perl modules needs Module::Build to be built, but this Perl module is not installed.
As described in the error message, the system is unable to compile and build Perl modules as Module::Build module is not installed. The error commonly happens in system which is not installed as a development machine. To resolve the error, just install the Module::Build module.
The tutorial will install the Module::Build Perl module and its necessary dependencies via Webmin.
- Log in to the Webmin control panel, i.e. https://your.server.com:10000/.
- Login as root, or a webmin user with full access.
- If you’re using Virtualmin or Cloudmin, click on Webmin on the top of sidebar.
- Expand the Others tree.
- Click on Perl Modules.
- Enter Module::Build in the text box after From CPAN, named, and ensure that its check box is selected.
- Click on Install button to install the module.
- Click on Return to modules list when done.
The package management automatically installed the following packages:
perl-Module-Build
perl-ExtUtils-CBuilder
perl-IPC-Cmd
perl-Locale-Maketext
perl-Locale-Maketext-Simple
perl-Module-CoreList
perl-Module-Load
perl-Module-Load-Conditional
perl-Params-Check
perl-Perl-OSType
$ su yum install perl-Module-Build