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

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/ cannot
restore segment prot after reloc: Permission denied - /home/iono/
from /home/iono/packages/gems/gems/ruby-oci8-2.0.1/lib/
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
from (irb):1

Any ideas?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs