------ extPart_000_000B_01C41062.A47E0C20
Content-Type: text/plain;
charset so-8859-1"
Content-Transfer-Encoding: quoted-printable
Anybody know what this is about?
Installing ruby dbi on:
ArchLinux
Ruby 1.8.1
Ruby DBI .21
I run this:
% ruby setup.rb config --with=dbi,dbd_mysql
% ruby setup.rb setup
% ruby setup.rb install
Everything seems to install fine. Then I test it with this program:
# simple.rb - simple MySQL script using Ruby DBI module
require "dbi"
begin
# connect to the MySQL server
dbh = DBI.connect("dbi:Mysql:test:localhost", "testuser", "testpass")
# get server version string and display it
row = dbh.select_one("SELECT VERSION()")
puts "Server version: " + row[0]
rescue DBI::DatabaseError => e
puts "An error occurred"
puts "Error code: #{e.err}"
puts "Error message: #{e.errstr}"
ensure
# disconnect from server
dbh.disconnect if dbh
end
and I get the following error:/usr/lib/ruby/site_ruby/1.8/dbi/dbi.rb:490:in `load_driver': is not a class/module (TypeError) from /usr/lib/ruby/site_ruby/1.8/dbi/dbi.rb:392:in `_get_full_driver' from /usr/lib/ruby/site_ruby/1.8/dbi/dbi.rb:372:in `connect' from simple.rb:5Thanks for any help at all in advance!!
------ extPart_000_000B_01C41062.A47E0C20--