To reproduce the error I installed version 2.1.6
ran irb
and required 'oci8'
Roberts-MacBook-Pro:instantclient rmartin$ rvm 1.9.3
Roberts-MacBook-Pro:instantclient rmartin$ gem install ruby-oci8
Building native extensions. This could take a while...
/Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:69: warning: Insecure world writable dir /usr/local/oracle/instantclient in PATH, mode 040777
Successfully installed ruby-oci8-2.1.6
1 gem installed
Roberts-MacBook-Pro:instantclient rmartin$ irb
/Users/rmartin/.rvm/scripts/irbrc.rb:41: warning: Insecure world writable dir /usr/local/oracle/instantclient in PATH, mode 040777
1.9.3p484 :001 > require 'oci8'
OCIError: OCI Library Initialization Error - /usr/local/oracle/instantclient/libclntsh.dylib.11.1
from oci8lib.c:134:in oci8lib_191.bundle
from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /Users/rmartin/.rvm/gems/ruby-1.9.3-p484/gems/ruby-oci8-2.1.6/lib/oci8.rb:69:in <top (required)>' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:inrequire'
from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in rescue in require' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:inrequire'
from (irb):1
from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/bin/irb:12:in `'
I tried with version 2.1.5 but got a different error:
1.9.3p484 :001 > require 'oci8'
ArgumentError: wrong number of arguments (2 for 0..1)
from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in initialize' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:innew'
from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /Users/rmartin/.rvm/gems/ruby-1.9.3-p484/gems/ruby-oci8-2.1.5/lib/oci8.rb:81:in <top (required)>' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:inrequire'
from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in rescue in require' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:inrequire'
from (irb):1
from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/bin/irb:12:in `'
To reproduce the error I installed version 2.1.6 ran irb and required 'oci8'
Roberts-MacBook-Pro:instantclient rmartin$ rvm 1.9.3 Roberts-MacBook-Pro:instantclient rmartin$ gem install ruby-oci8 Building native extensions. This could take a while... /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:69: warning: Insecure world writable dir /usr/local/oracle/instantclient in PATH, mode 040777 Successfully installed ruby-oci8-2.1.6 1 gem installed Roberts-MacBook-Pro:instantclient rmartin$ irb /Users/rmartin/.rvm/scripts/irbrc.rb:41: warning: Insecure world writable dir /usr/local/oracle/instantclient in PATH, mode 040777 1.9.3p484 :001 > require 'oci8' OCIError: OCI Library Initialization Error - /usr/local/oracle/instantclient/libclntsh.dylib.11.1 from oci8lib.c:134:in oci8lib_191.bundle from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in'
require' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
require' from /Users/rmartin/.rvm/gems/ruby-1.9.3-p484/gems/ruby-oci8-2.1.6/lib/oci8.rb:69:in<top (required)>' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in
require' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:inrescue in require' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:in
require' from (irb):1 from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/bin/irb:12:in `I tried with version 2.1.5 but got a different error:
1.9.3p484 :001 > require 'oci8' ArgumentError: wrong number of arguments (2 for 0..1) from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in'
initialize' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
new' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
require' from /Users/rmartin/.rvm/gems/ruby-1.9.3-p484/gems/ruby-oci8-2.1.5/lib/oci8.rb:81:in<top (required)>' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in
require' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:inrescue in require' from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:in
require' from (irb):1 from /Users/rmartin/.rvm/rubies/ruby-1.9.3-p484/bin/irb:12:in `