From: Shanon Fernald Date: 2004-03-23T16:05:39+09:00 Subject: ruby dbi installation issue ------=_NextPart_000_000B_01C41062.A47E0C20 Content-Type: text/plain; charset="iso-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=3Ddbi,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 =3D DBI.connect("dbi:Mysql:test:localhost", "testuser", = "testpass") # get server version string and display it row =3D dbh.select_one("SELECT VERSION()") puts "Server version: " + row[0] rescue DBI::DatabaseError =3D> 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!! ------=_NextPart_000_000B_01C41062.A47E0C20--