This is just a guess, but are you running the same Ruby version via rvm for the gem install and the subsequent use of the gem? When you do a `gem list` do you see the oci8 gem listed? --Mark On Sep 9, 2011, at 12:58 PM, John Chivian wrote: > I am having trouble getting oci8 to load. > > CentOS 5.6 > Ruby 1.9.2 > OCI8 2.0.6 > Ruby installed with RVM > (set Oracle environment variables) > > $ gem install oci8 > Building native extensions. This could take a while... > Successfully installed ruby-oci8-2.0.6 > 1 gem installed > Installing ri documentation for ruby-oci8-2.0.6... > Installing RDoc documentation for ruby-oci8-2.0.6... > > Yet when I try to use it in any context I get... > > $ ruby -r oci8 > puts 'Hello world!' > <internal:lib/rubygems/custom_require>:29:in `require': no such file to > load -- oci8 (LoadError) > from <internal:lib/rubygems/custom_require>:29:in `require' > $ > > I'm fairly sure I'm missing something trivial but being an admin (not a > ruby developer) I've no idea what. Does ruby need an LD_LIBRARY_PATH lement to point to the gems? > > My apologies if this isn't exactly the right place for the question. > > $ ruby -v > ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] > $ gem -v > > 1.8.10 > $ gem list > > *** LOCAL GEMS *** > > rake (0.9.2 ruby) > ruby-oci8 (2.0.6) > ruby-ole (1.2.11.2) > ruby-prof (0.10.8) > rubygems-update (1.8.10) > sources (0.0.1) > spreadsheet (0.6.5.9) > man-ciserv-001:~ $ > > JC > > -- > Posted via http://www.ruby-forum.com/. >