# Unable to install the "sensu-plugins-memcached"

**URL:** <https://discourse.sensu.io/t/unable-to-install-the-sensu-plugins-memcached/658>\
**Category:** Sensu Classic (EOL)\
**Created:** [August 23, 2016, 3:29am UTC](https://discourse.sensu.io/t/unable-to-install-the-sensu-plugins-memcached/658 "2016-08-23T03:29:29Z")\
**Posts on this page:** 3\
**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 23, 2016, 3:29am UTC](https://discourse.sensu.io/t/unable-to-install-the-sensu-plugins-memcached/658/1 "2016-08-23T03:29:29Z")

</div>

I am unable to install the **sensu-plugins-memcached** on centos machine

**GETTING THE BELOW ERROR WHILE INSTALLING**

sensu-install -p sensu-plugins-memcached

[SENSU-INSTALL] installing Sensu plugins …

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

false

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

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

Building native extensions. This could take a while…

ERROR: Error installing sensu-plugins-memcached:

ERROR: Failed to build gem native extension.

current directory: /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/memcached-1.8.0/ext

/opt/sensu/embedded/bin/ruby -r ./siteconf20160823-27784-1qkkf91.rb extconf.rb

checking for sasl/sasl.h… no

Please install SASL to continue. The package is called libsasl2-dev on Ubuntu and cyrus-sasl on Gentoo.

\*\*\* 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)

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/memcached-1.8.0/mkmf.log

extconf failed, exit code 1

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

Results logged to /opt/sensu/embedded/lib/ruby/gems/2.3.0/extensions/x86\_64-linux/2.3.0/memcached-1.8.0/gem\_make.out

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

[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-memcached …

homepage: [https://github.com/sensu-plugins/sensu-plugins-memcached](https://github.com/sensu-plugins/sensu-plugins-memcached)

I have installed the latest gcc too

I have installed the Development tools too

**yum groupinstall 'Development Tools’**

**Everything is upto date**

**But still plugin is not getting installed**

**can anyone help me to figure out whats the issue???**

**I have been struck with this and need to fix immediately.**

---

<div class="post-metadata">

**Author:** ![Smith\_Joel\_HEALTH\_AN](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Smith\_Joel\_HEALTH\_AN](https://discourse.sensu.io/u/Smith_Joel_HEALTH_AN)\
**Post date:** [August 23, 2016, 2:24pm UTC](https://discourse.sensu.io/t/unable-to-install-the-sensu-plugins-memcached/658/2 "2016-08-23T14:24:03Z")

</div>

From the error message:

> checking for sasl/sasl.h… no

> Please install SASL to continue. The package is called libsasl2-dev on Ubuntu and cyrus-sasl on Gentoo.

> \*\*\* extconf.rb failed \*\*\*

So, you need to install SASL. To find the name of the package on Centos, do

yum whatprovides \*/sasl.h

``

which reveals that you want cyrus-sasl-devel

Install this, and with any luck your installation will complete successfully.

Cheers,

Joel

> **···**
>
> On Tuesday, 23 August 2016 04:29:29 UTC+1, IMRAN SHAIK wrote:
> 
> > I am unable to install the **sensu-plugins-memcached** on centos machine
> 
> > 
> 
> > **GETTING THE BELOW ERROR WHILE INSTALLING**
> 
> > sensu-install -p sensu-plugins-memcached
> 
> > 
> 
> > [SENSU-INSTALL] installing Sensu plugins …
> 
> > [SENSU-INSTALL] determining if Sensu plugin gem ‘sensu-plugins-memcached’ is already installed …
> 
> > false
> 
> > [SENSU-INSTALL] Sensu plugin gems to be installed: [“sensu-plugins-memcached”]
> 
> > [SENSU-INSTALL] installing Sensu plugin gem ‘sensu-plugins-memcached’
> 
> > Building native extensions. This could take a while…
> 
> > ERROR: Error installing sensu-plugins-memcached:
> 
> > ERROR: Failed to build gem native extension.
> 
> > 
> 
> > current directory: /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/memcached-1.8.0/ext
> 
> > /opt/sensu/embedded/bin/ruby -r ./siteconf20160823-27784-1qkkf91.rb extconf.rb
> 
> > checking for sasl/sasl.h… no
> 
> > Please install SASL to continue. The package is called libsasl2-dev on Ubuntu and cyrus-sasl on Gentoo.
> 
> > \*\*\* 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)
> 
> > 
> 
> > 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/memcached-1.8.0/mkmf.log
> 
> > 
> 
> > extconf failed, exit code 1
> 
> > 
> 
> > Gem files will remain installed in /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/memcached-1.8.0 for inspection.
> 
> > Results logged to /opt/sensu/embedded/lib/ruby/gems/2.3.0/extensions/x86\_64-linux/2.3.0/memcached-1.8.0/gem\_make.out
> 
> > [SENSU-INSTALL] failed to install Sensu plugin gem ‘sensu-plugins-memcached’
> 
> > [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-memcached …
> 
> > homepage: [https://github.com/sensu-plugins/sensu-plugins-memcached](https://github.com/sensu-plugins/sensu-plugins-memcached)
> 
> > 
> 
> > 
> 
> > I have installed the latest gcc too
> 
> > I have installed the Development tools too
> 
> > 
> 
> > **yum groupinstall ‘Development Tools’**
> 
> > **Everything is upto date**
> 
> > **But still plugin is not getting installed**
> 
> > **can anyone help me to figure out whats the issue???**
> 
> > **I have been struck with this and need to fix immediately.**

---

<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 24, 2016, 3:33am UTC](https://discourse.sensu.io/t/unable-to-install-the-sensu-plugins-memcached/658/3 "2016-08-24T03:33:36Z")

</div>

\*\*hi \*\*joel

Thanks for the reply.

\*\*It worked and plugin is installed **successfully**. \*\*
