Page 1 of 1

Nagios-plugins with perl problems Module-Build-0.4007

Posted: Mon Aug 27, 2018 3:37 am
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 ?

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

Posted: Tue Aug 28, 2018 1:25 pm
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.

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

Posted: Tue Aug 28, 2018 1:45 pm
by basd
i posted the output here https://pastebin.com/e3g3UVzT

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

Posted: Wed Aug 29, 2018 4:21 pm
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.