Nagios-plugins with perl problems Module-Build-0.4007

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
basd
Posts: 4
Joined: Sun Jan 26, 2014 11:59 am

Nagios-plugins with perl problems Module-Build-0.4007

Post by basd »

When i try to compile nagios-plugins-2.2.1 from source with --enable-perl-modules

I keep getting this fatal error :

Code: Select all

******************** Module-Build-0.4007.tar.gz

Working in: /usr/src/nagios-plugins-2.2.1/perlmods/Module-Build-0.4007

Using Build.PL
do "inc/bootstrap.pl" failed, '.' is no longer in @INC; did you mean do "./inc/bootstrap.pl"? at Build.PL line 18.
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Module-Build' version '0.4007'
Building Module-Build
How can i solve this ?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios-plugins with perl problems Module-Build-0.4007

Post by cdienger »

At which step are you seeing this exactly? What commands did you run?

add "&> install.log" to the end of the command so we can gather a log.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
basd
Posts: 4
Joined: Sun Jan 26, 2014 11:59 am

Re: Nagios-plugins with perl problems Module-Build-0.4007

Post by basd »

i posted the output here https://pastebin.com/e3g3UVzT
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios-plugins with perl problems Module-Build-0.4007

Post by cdienger »

For some reason the current directory "." is missing from @INC. I'm not sure why this would be the case to be honest, but the work around should be easy enough.

extract /usr/src/nagios-plugins-2.2.1/perlmods/Module-Build-0.4007, change line 18 in the Build.PL file from:

BEGIN { do 'inc/bootstrap.pl' }

to:

BEGIN { do './inc/bootstrap.pl' }

compress and archive Module-Build-0.4007, and run the make command again.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked