kubo / ruby-oci8

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

cannot open shared object file: oci8lib_191.so #46

Closed redbull-assassin closed 10 years ago

redbull-assassin commented 10 years ago

This happens everytine I try to use the oci8 gem, but the file it cannot find exists 1.9.3-p448 :001 > require 'oci8' LoadError: libaio.so.1: cannot open shared object file: No such file or directory - /usr/local/rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/lib/oci8lib_191.so from /usr/local/rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /usr/local/rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from /usr/local/rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/lib/oci8.rb:81:in <top (required)>' from /usr/local/rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:inrequire' from /usr/local/rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in rescue in require' from /usr/local/rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:inrequire' from (irb):1 from /usr/local/rvm/rubies/ruby-1.9.3-p448/bin/irb:13:in `

' 1.9.3-p448 :002 > exit root@hydra:/usr/local/lib/instantclient# ls -la /usr/local/rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/lib/oci8lib_191.so -rwxr-xr-x 1 root rvm 678393 Nov 24 21:13 /usr/local/rvm/gems/ruby-1.9.3-p448/gems/ruby-oci8-2.1.5/lib/oci8lib_191.so

kubo commented 10 years ago

You need to install libaio.so.1. yum install libaio or apt-get install libaio1

kubo commented 10 years ago

I close this issue. If you have same issue even though you installed libaio.so.1, tell me. Then, I'll reopen this.

kaisersly commented 9 years ago

Hello kubo, I encountered the same problem. Don't you think it could be interesting to add this requirement to the installation instructions ?

davidsun2016 commented 7 years ago

I met same error on windows environment, load error for oci8lib_200.so, what should I do? thanks!