Friday, February 15, 2013

Perl module Test-Simple-0.70 fails to build while compiling Nagios Plugins 1.4.16

  • CentOS 6.3 x64
  • Nagios-Plugins-1.4.16


While compiling nagios-plugins-1.4.16:
cd /usr/local/src
tar -xzf nagios-plugins-1.4.16.tar.gz
cd nagios-plugins-1.4.16
./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl=/usr/bin/openssl --enable-perl-modules
make install
The following error shows up at the end of make install:
make[3]: Entering directory `/usr/local/src/nagios-plugins-1.4.16/perlmods/Test-Simple-0.70'
make[3]: *** No rule to make target `install'.  Stop.
make[3]: Leaving directory `/usr/local/src/nagios-plugins-1.4.16/perlmods/Test-Simple-0.70'
Can't run make install at ../tools/build_perl_modules line 85.
make[2]: *** [install-exec-local] Error 2
make[2]: Leaving directory `/usr/local/src/nagios-plugins-1.4.16/perlmods'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/usr/local/src/nagios-plugins-1.4.16/perlmods'
make: *** [install-recursive] Error 1


Build the Test-Simple-0.70 package manually then make install the nagios-plugins again:

#inside the extracted nagios-plugins that is being built
cd nagios-plugins-1.4.16/perlmods/Test-Simple-0.70
perl Makefile.PL
make install

# go back to nagios-plugins to make install
cd ../..
make install

You may want to check out my blog post on Installing Centreon 2.4 on CentOS 6.3 x64.

No comments:

Post a Comment