Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in `require': cannot load such file -- mysql (LoadError) #113

Open
itamarshpak opened this issue Jun 19, 2019 · 0 comments
Open

in `require': cannot load such file -- mysql (LoadError) #113

itamarshpak opened this issue Jun 19, 2019 · 0 comments

Comments

@itamarshpak
Copy link

itamarshpak commented Jun 19, 2019

Hey Im Getting This Error for some checks.
I read in some websites that the solution is to install mysql2 gem but still didnt helped me.

/opt/sensu/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- mysql (LoadError)
from /opt/sensu/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in require' from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-mysql-3.1.1/bin/check-mysql-replication-status.rb:33:in '
from /opt/sensu/embedded/bin/check-mysql-replication-status.rb:23:in load' from /opt/sensu/embedded/bin/check-mysql-replication-status.rb:23:in '`

Need to change - "Require 'mysql'" to "Require 'mysql2'" in ruby scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant