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
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
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.
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?
···
On Sun, May 23, 2004 at 06:08:44PM +0900, Martin Uruz wrote: