From: Luis Lavena Date: 2009-12-01T01:05:05+09:00 Subject: Re: Oracle-oci8.2.0 On Nov 30, 10:43 am, Vetrivel Vetrivel wrote: > Luis Lavena wrote: > > On Nov 30, 8:08 am, Vetrivel Vetrivel > > wrote: > >> from > >> from (irb):3 > >> -- > > > You installed a Windows binary gem on a Linux operating system: > > > "x86-mswin32-60" is the platform of the gem. > > > Please check the project page of the gem and look for build > > instructions for Linux. > > >http://ruby-oci8.rubyforge.org/en/ > > Thanks for your reply. But I have installed > > gem1.8 install ruby-oci8-1.0.6.gem > Successfully installed ruby-oci8-1.0.6 > 1 gem installed > Installing ri documentation for ruby-oci8-1.0.6... > Installing RDoc documentation for ruby-oci8-1.0.6... > > require 'oci8' . I got following errors . > > LoadError: /usr/local/lib/site_ruby/1.8/i486-linux/oci8lib.so: invalid > ELF header - /usr/local/lib/site_ruby/1.8/i486-linux/oci8lib.so >         from /usr/local/lib/site_ruby/1.8/i486-linux/oci8lib.so >         from > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' >         from /usr/local/lib/site_ruby/1.8/oci8.rb:20 >         from > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' >         from > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' >         from (irb):2 Somehow you have a oci8lib.so inside your site_ruby, which indicates something got installed as extension inside your Ruby installation and not as a gem. Please check back any previous attempt of installation of OCI8 you tried in your system, or check your Linux distribution for a package OCI for Ruby, which could be interfering. Without more information about your environment, how you reached that point, what distro of linux, how you installed Ruby and so on, we can't help you. Help us help you. -- Luis Lavena