From: Martin Uruz Date: 2004-05-23T22:28:44+09:00 Subject: Re: DBI Michael Neumann wrote: > On Sun, May 23, 2004 at 06:08:44PM +0900, Martin Uruz wrote: > >>hi >>i hav a problem with database access to a mysql database i use this code: >>#!/usr/bin/ruby >>require "dbi" >> >>DBI.connect("DBI:Mysql:logs", >> "rubychan", "Rubin") { |conn| >> } >>and i get the following error: >> >>/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 ./dbtest.rb:5 >>can someone help me i am new in ruby > > > Ruby/DBI depends on other software modules, in your case it expects the > mysql-ruby to be installed. > > You can find it here: http://raa.ruby-lang.org/project/mysql-ruby/ > Install it! > > Regards, > > Michael > > ok but i hav problems to install it if i run the comand ruby extconf.rb i get the following error: checking for mysql_query() in -lmysqlclient... no checking for main() in -lm... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lz... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lsocket... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lnsl... no checking for mysql_query() in -lmysqlclient... no must i specify all mysql directorys or what means that? -- thx martin pfeffer at suse 9.0 Apache 2.0 http://eurowalker.is.dreaming.org