I have sucessfully installed DB2 on Ubuntu 10.04 to be used in conjunction with my rails app. I'm not quite sure if everything is properly setup because I keep getting an error "Failed to load IBM DB2 Ruby driver" .
irb(main):001:0> require 'ibm_db2'
LoadError: no such file to load -- ibm_db2
from (irb):1:in `require'
I have followed the README.txt but the one thing I can't seem to figure out is the ibm_db2.so and how to compile it and where to put it. I put the ibm_db2_adapter into /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.9/lib/active_record/connection_adapters and added RAILS_CONNECTION_ADAPTERS = %w( mysql postgresql sqlite firebird sqlserver db2 oracle sybase openbase ibm_db2 ) to the active_record.rb.
To test the initial connection, I changed the adapter in the YAML file to ibm_db and this was the output: