# Unable to install the mysql sensu plugin

**URL:** https://discourse.sensu.io/t/unable-to-install-the-mysql-sensu-plugin/651
**Category:** Sensu Classic (EOL)
**Created:** [August 12, 2016, 8:53am UTC](https://discourse.sensu.io/t/unable-to-install-the-mysql-sensu-plugin/651 "2016-08-12T08:53:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![IMRAN\_SHAIK](https://avatars.discourse-cdn.com/v4/letter/i/c89c15/32.png) [@IMRAN\_SHAIK](https://discourse.sensu.io/u/IMRAN_SHAIK)
#### Post date: [August 12, 2016, 8:53am UTC](https://discourse.sensu.io/t/unable-to-install-the-mysql-sensu-plugin/651/1 "2016-08-12T08:53:52Z")

</div>

**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](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?**

---

<div class="post-metadata">

### Author: ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)
#### Post date: [August 12, 2016, 2:36pm UTC](https://discourse.sensu.io/t/unable-to-install-the-mysql-sensu-plugin/651/2 "2016-08-12T14:36:43Z")

</div>

You probably need the mysql development package.

> **···**
>
> On Fri, Aug 12, 2016 at 1:53 AM, IMRAN SHAIK [imranrehman5155@gmail.com](mailto: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](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?**
> 
> >
