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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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/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:in
`gem_original_require'
        from /home/iono/lib/ruby/rubygems/custom_require.rb:36:in
`require'
        from (irb):1

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