I m a carystartner and with the following wrong.
Driver: dbi:Oracle:
/Library/Ruby/Site/1.8/dbi/dbi.rb:511:in `load_driver : Could not load driver (no such file to load -- oracle) (DBI::InterfaceError)
from /Library/Ruby/Site/1.8/dbi/dbi.rb:429:in `data_sources
from /tmp/list-ruby-dbsupport.rb:4
from /tmp/list-ruby-dbsupport.rb:2:in `each
from /tmp/list-ruby-dbsupport.rb:2
这是我的文字(名单支持)。
require dbi
DBI.available_drivers.each do |driver|
puts "Driver: " + driver
DBI.data_sources(driver).each do |dsn|
puts " Datasource: " + dsn
end
end
使用Mac和I的Im刚刚安装了Dbi,其指挥如下(安装期间没有发现任何错误)
ruby setup.rb config –-with=dbi,dbd_oracle,dbd_mysql
I installed dbd-mysql-0.4.4 and dbd-odbc-0.2.5 too - hoping that might fix the error but it didnt. Could anyone tell me how to fix or where to check please?