Unable to install the mysql sensu plugin

sensu-install -p sensu-plugins-mysql

[SENSU-INSTALL] installing Sensu plugins …

[SENSU-INSTALL] determining if Sensu plugin gem ‘sensu-plugins-mysql’ is already installed …

false

[SENSU-INSTALL] Sensu plugin gems to be installed: [“sensu-plugins-mysql”]

[SENSU-INSTALL] installing Sensu plugin gem ‘sensu-plugins-mysql’

Building native extensions. This could take a while…

ERROR: Error installing sensu-plugins-mysql:

ERROR: Failed to build gem native extension.

current directory: /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/mysql-2.9.1/ext/mysql_api

/opt/sensu/embedded/bin/ruby -r ./siteconf20160812-9147-ekyzq9.rb extconf.rb

checking for mysql_ssl_set()… *** extconf.rb failed ***

Could not create Makefile due to some reason, probably lack of necessary

libraries and/or headers. Check the mkmf.log file for more details. You may

need configuration options.

Provided configuration options:

–with-opt-dir

–with-opt-include

–without-opt-include=${opt-dir}/include

–with-opt-lib

–without-opt-lib=${opt-dir}/lib

–with-make-prog

–without-make-prog

–srcdir=.

–curdir

–ruby=/opt/sensu/embedded/bin/$(RUBY_BASE_NAME)

–with-mysql-config

–without-mysql-config

/opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:456:in `try_do’: The compiler failed to generate an executable file. (RuntimeError)

You have to install development tools first.

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:541:in `try_link0’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:556:in `try_link’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:765:in `try_func’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:1051:in `block in have_func’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:942:in `block in checking_for’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:350:in `block (2 levels) in postpone’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:320:in `open’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:350:in `block in postpone’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:320:in `open’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:346:in `postpone’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:941:in `checking_for’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:1050:in `have_func’

from extconf.rb:45:in `’

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/opt/sensu/embedded/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/mysql-2.9.1/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/mysql-2.9.1 for inspection.

Results logged to /opt/sensu/embedded/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/mysql-2.9.1/gem_make.out

[SENSU-INSTALL] failed to install Sensu plugin gem ‘sensu-plugins-mysql’

[SENSU-INSTALL] you can run the sensu-install command again with --verbose for more info

[SENSU-INSTALL] please take note of any failure messages above

[SENSU-INSTALL] make sure you have build tools installed (e.g. gcc)

[SENSU-INSTALL] trying to determine the Sensu plugin homepage for sensu-plugins-mysql …

homepage: https://github.com/sensu-plugins/sensu-plugins-mysql

I have already installed the development tools

yum groupinstall "Development Tools"

Can any one figure out whats the issue is?

You probably need the mysql development package.

···

On Fri, Aug 12, 2016 at 1:53 AM, IMRAN SHAIK imranrehman5155@gmail.com wrote:

sensu-install -p sensu-plugins-mysql

[SENSU-INSTALL] installing Sensu plugins …

[SENSU-INSTALL] determining if Sensu plugin gem ‘sensu-plugins-mysql’ is already installed …

false

[SENSU-INSTALL] Sensu plugin gems to be installed: [“sensu-plugins-mysql”]

[SENSU-INSTALL] installing Sensu plugin gem ‘sensu-plugins-mysql’

Building native extensions. This could take a while…

ERROR: Error installing sensu-plugins-mysql:

ERROR: Failed to build gem native extension.

current directory: /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/mysql-2.9.1/ext/mysql_api

/opt/sensu/embedded/bin/ruby -r ./siteconf20160812-9147-ekyzq9.rb extconf.rb

checking for mysql_ssl_set()… *** extconf.rb failed ***

Could not create Makefile due to some reason, probably lack of necessary

libraries and/or headers. Check the mkmf.log file for more details. You may

need configuration options.

Provided configuration options:

–with-opt-dir

–with-opt-include

–without-opt-include=${opt-dir}/include

–with-opt-lib

–without-opt-lib=${opt-dir}/lib

–with-make-prog

–without-make-prog

–srcdir=.

–curdir

–ruby=/opt/sensu/embedded/bin/$(RUBY_BASE_NAME)

–with-mysql-config

–without-mysql-config

/opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:456:in `try_do’: The compiler failed to generate an executable file. (RuntimeError)

You have to install development tools first.

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:541:in `try_link0’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:556:in `try_link’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:765:in `try_func’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:1051:in `block in have_func’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:942:in `block in checking_for’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:350:in `block (2 levels) in postpone’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:320:in `open’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:350:in `block in postpone’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:320:in `open’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:346:in `postpone’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:941:in `checking_for’

from /opt/sensu/embedded/lib/ruby/2.3.0/mkmf.rb:1050:in `have_func’

from extconf.rb:45:in `’

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/opt/sensu/embedded/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/mysql-2.9.1/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/mysql-2.9.1 for inspection.

Results logged to /opt/sensu/embedded/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/mysql-2.9.1/gem_make.out

[SENSU-INSTALL] failed to install Sensu plugin gem ‘sensu-plugins-mysql’

[SENSU-INSTALL] you can run the sensu-install command again with --verbose for more info

[SENSU-INSTALL] please take note of any failure messages above

[SENSU-INSTALL] make sure you have build tools installed (e.g. gcc)

[SENSU-INSTALL] trying to determine the Sensu plugin homepage for sensu-plugins-mysql …

homepage: https://github.com/sensu-plugins/sensu-plugins-mysql

I have already installed the development tools

yum groupinstall “Development Tools”

Can any one figure out whats the issue is?