Trying to use AR with Oracle Instant Client: ruby-oci8 fails to load


#1

I am trying to establish a connection to oracle through ruby-oci8 with
the intent on using ActiveRecord.

I have Oracle instant-client installed in the usual system location.

I have these gems installed in my user space:
activerecord (2.3.2)
activerecord-oracle_enhanced-adapter (1.2.0)
activesupport (2.3.2)
dbi (0.4.1)
deprecated (2.0.1)
fastercsv (1.4.0)
gnuplot (2.2)
rake (0.8.4)
ruby-oci8 (2.0.1)

When I try to require ‘ruby-oci8’, I see this odd error:

irb(main):001:0> require ‘oci8’
LoadError: /usr/lib/oracle/10.2.0.4/client64/lib/libnnz10.so: cannot
restore segment prot after reloc: Permission denied - /home/iono/
packages/gems/gems/ruby-oci8-2.0.1/lib/oci8lib_18.so
from /home/iono/packages/gems/gems/ruby-oci8-2.0.1/lib/
oci8lib_18.so
from /home/iono/lib/ruby/rubygems/custom_require.rb:31:in
require' from /home/iono/packages/gems/gems/ruby-oci8-2.0.1/lib/oci8.rb: 25 from /home/iono/lib/ruby/rubygems/custom_require.rb:36:ingem_original_require’
from /home/iono/lib/ruby/rubygems/custom_require.rb:36:in
`require’
from (irb):1

Any ideas?