Forum: Ruby on Rails Trying to use AR with Oracle Instant Client: ruby-oci8 fails to load

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Rob R. (Guest)
on 2009-04-12 04:50
(Received via mailing list)
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
        from /home/iono/packages/gems/gems/ruby-oci8-2.0.1/lib/oci8.rb:
        from /home/iono/lib/ruby/rubygems/custom_require.rb:36:in
        from /home/iono/lib/ruby/rubygems/custom_require.rb:36:in
        from (irb):1

Any ideas?
This topic is locked and can not be replied to.