RobR
2009-Apr-12 00:49 UTC
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/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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---