Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > DBI - error loading driver

Reply
Thread Tools

DBI - error loading driver

 
 
Peter Vanderhaden
Guest
Posts: n/a
 
      11-11-2007
I installed the DBI package so that I could write Ruby scripts that
access MySQL databases. When I attempt to run a test script, I get the
following error:

/usr/local/lib/site_ruby/1.8/dbi.rb:344:in `load_driver': Could not load
driver (no such file to load -- mysql) (DBI::InterfaceError)
from /usr/local/lib/site_ruby/1.8/dbi.rb:227:in
`_get_full_driver'
from /usr/local/lib/site_ruby/1.8/dbi.rb:213:in `connect'
from /root/bin/simple.rb:6

I used the instructions at this link:

www.kitebird.com/articles/rubi-dbi.html

Can anyone help me figure out what the problem is?
Thanks....
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Windham, Kristopher R.
Guest
Posts: n/a
 
      11-11-2007
you need to install the ruby-mysql module

http://www.kitebird.com/articles/ruby-mysql.html

you also need MySQL C client API header files and libraries installed

it would be a good idea to know where your mysql libs are before
attempting to configure


On Nov 11, 2007, at 2:43 PM, Peter Vanderhaden wrote:

> I installed the DBI package so that I could write Ruby scripts that
> access MySQL databases. When I attempt to run a test script, I get
> the
> following error:
>
> /usr/local/lib/site_ruby/1.8/dbi.rb:344:in `load_driver': Could not
> load
> driver (no such file to load -- mysql) (DBI::InterfaceError)
> from /usr/local/lib/site_ruby/1.8/dbi.rb:227:in
> `_get_full_driver'
> from /usr/local/lib/site_ruby/1.8/dbi.rb:213:in `connect'
> from /root/bin/simple.rb:6
>
> I used the instructions at this link:
>
> www.kitebird.com/articles/rubi-dbi.html
>
> Can anyone help me figure out what the problem is?
> Thanks....
> --
> Posted via http://www.ruby-forum.com/.
>



 
Reply With Quote
 
 
 
 
Peter Vanderhaden
Guest
Posts: n/a
 
      11-11-2007
Thanks Kristopher....

Windham, Kristopher R. wrote:
> you need to install the ruby-mysql module
>
> http://www.kitebird.com/articles/ruby-mysql.html
>
> you also need MySQL C client API header files and libraries installed
>
> it would be a good idea to know where your mysql libs are before
> attempting to configure


--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xffc Thread 0x228 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-30-2006 03:16 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 1 03-24-2006 04:20 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-24-2006 02:22 PM
DBI and DBI::Oracle packages configuration ulloa Perl 1 07-22-2004 05:52 PM
Problem loading driver with dbi, 1.8.x Daniel Berger Ruby 0 03-01-2004 07:27 PM



Advertisments