kubo / ruby-oci8

Ruby-oci8 - Oracle interface for ruby
Other
169 stars 75 forks source link

How to connect oracle using ruby-oci8 in rails 4 application #59

Closed vigneshinfoavc closed 10 years ago

vigneshinfoavc commented 10 years ago

Hi, I am using ruby 2.0 and rails 4.0, while connecting oracle I am getting issue. Can u tell me the steps how to use oracle connection in rails 4.0 with windows server 2008 r2 with 64-bit system. But it's working fine with 32-bit system and also I installed both ruby-oci8 and activerecord-oracle_enhanced-adapter gems.

while connecting oracle I am getting the following issue, can you help me on this also? Please find the following issues. LoadError: 193: %1 is not a valid Win32 application. - c:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14/lib/mysql2/mysql2.so c:/Projects/latest_repo_code/config/application.rb:7:in <top (required)>' c:/Projects/latest_repo_code/Rakefile:4:in<top (required)>'

kubo commented 10 years ago

LoadError: 193: %1 is not a valid Win32 application. - c:/Ruby200/lib/ruby/gems/2.0.0,/gems/mysql2-0.3.14/lib/mysql2/mysql2.so

This is not a ruby-oci8 issue. The error was raised when mysql2.so was loaded. Probably your ruby is 64-bit and the mysql2.so is 32-bit or vice versa.