Here''s a solution to the OCI8 problem shown below (change
/usr/local/oracle
to your site''s oracle):
If this happens when you are running scripts at the shell prompt:
export LD_LIBRARY_PATH=/usr/local/oracle/lib
If this happens in your apache error_log, add to httpd.conf:
SetEnv LD_LIBRARY_PATH /usr/local/oracle/lib
Kevin Kleinfelter
If it''s not documented, it''s a custom, not a
standard/process/policy.
Customs are the domain of anthropologists.
-- Kevin Kleinfelter (and you can quote me)
Avik Sengupta avik.sengupta at gmail.com
<mailto:rails%40lists.rubyonrails.org?Subject=%5BRails%5D%20Problem%20with%2
0Rails%20and%20OCI8&In-Reply-To=>
Tue Mar 15 15:13:29 GMT 2005
Using Rails 0.10.1 , following error when I have OCI8 (ver 1.9)
installed .. Older rails (0.9) did not have this problem, AFAIK.
Uninstalling OCI8 from site_ruby makes the problem go away.
Ideas? Thanks.
/usr/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/connection_
adapters/oci_adapter.rb:253:
undefined method `define_a_column'' for class `OCI8::Cursor''
(NameError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__''
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require''
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.0.1/lib/active_support/dependenc
ies.rb:197:in
`require''
from
/usr/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record.rb:67
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__''
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require''
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:164:in `activate''
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:38:in
`require_gem_with_options''
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:32:in
`require_gem''
from ./script/../config/environment.rb:28
from ./script/server:46:in `require''
from ./script/server:46
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails