sensu-plugins / sensu-plugins-memcached

This plugin provides native memcached instrumentation for monitoring and metrics collection, including: service health and metrics via the memcached stats command.
http://sensu-plugins.io
MIT License
2 stars 9 forks source link

ruby not found. trying to find ruby in the path and not using embedded sensu version #2

Closed frederic-joventures closed 7 years ago

frederic-joventures commented 9 years ago

Hello, when trying to install I have a error ruby not found.

GMAKE_CMD='make' CXXFLAGS=' -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -std=gnu++98 -L/opt/sensu/embedded/lib -I/opt/sensu/embedded/include -fPIC -L/opt/sensu/embedded/lib -I/opt/sensu/embedded/include -fPIC' SOURCE_DIR='libmemcached-0.32' HERE='/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/memcached-1.8.0/ext' ruby ../extconf-make.rb sh: 1: ruby: not found

I use the embedded ruby from sensu and do not have another version of ruby installed.

eheydrick commented 8 years ago

Which platform are you seeing this on?

frederic-joventures commented 8 years ago

Ubuntu 14.04 latest

eheydrick commented 8 years ago

I'm unable to repro this. Can you post the full command you are using to install the plugin.

eheydrick commented 8 years ago

@frederic-jomedia Were you able to get the install command?

frederic-joventures commented 8 years ago

sorry for the delay I install using : /opt/sensu/embedded/bin/gem install sensu-plugins-memcached -v 0.0.3

output.txt

sstarcher commented 8 years ago

@frederic-jomedia my guess would be that /opt/sensu/embedded/bin/ruby is not on your path Try adding it to your path prior to running the command.

Also check the output of which ruby

frederic-joventures commented 8 years ago

It is indeed the case but I only have the problem with this particular plugin. I suppose the others force the usage of the embedded ruby ?

frederic-joventures commented 8 years ago

I can confirm that the installation succeeded with sensu's ruby in the path.

envintus commented 8 years ago

FWIW, I did not experience this on Debian 8 Jessie. I went ahead and made sure that libsasl2-dev was installed and when I installed the plugin using sensu-install it worked with out error.

frederic-joventures commented 8 years ago

Since the sensu-install (instead of calling gem directly ) command line it is working. So I guess it can be closed

majormoses commented 7 years ago

closing per: https://github.com/sensu-plugins/sensu-plugins-memcached/issues/2#issuecomment-199826132