kubo / ruby-oci8

Ruby-oci8 - Oracle interface for ruby
Other
169 stars 75 forks source link

Error Ignoring ruby-oci8-2.2.5.1 because its extensions are not built. #186

Closed peteralfafara closed 6 years ago

peteralfafara commented 6 years ago

Hi Kubo,

This is my second time asking for your expert advice.

We've installed the latest version of ruby-oci8 but during run our scripts we encounter the following error?

Ignoring ruby-oci8-2.2.5.1 because its extensions are not built. Try: gem pristine ruby-oci8 --version 2.2.5.1 /opt/sensu/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- oci8 (LoadError) from /opt/sensu/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /opt/sensu/embedded/bin/sqlcore.rb:28:in <top (required)>' from /opt/sensu/embedded/bin/metrics-stale-transmission.rb:25:inrequire_relative' from /opt/sensu/embedded/bin/metrics-stale-transmission.rb:25:in `

'

Any ideas on how to solve this? Thank you very much!

Regards, Peter

kubo commented 6 years ago

Could you try gem pristine ruby-oci8 --version 2.2.5.1 as the error message suggested? You need to set LD_LIBRARY_PATH in advance. See here or here.

peteralfafara commented 6 years ago

Hi Kubo,

Thanks for the response. It turns out that there were just permission issues in the gem extension directory due to installing it using a non-root user. Just gave permission on the following directory

chmod –R o+r /opt/sensu/embedded/lib/ruby/gems/2.4.0/extensions.

Thanks for the assistance once again!

Regards, Peter