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
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.