Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Ruby (http://www.velocityreviews.com/forums/f66-ruby.html)
-   -   DBI - error loading driver (http://www.velocityreviews.com/forums/t845653-dbi-error-loading-driver.html)

Peter Vanderhaden 11-11-2007 07:43 PM

DBI - error loading driver
 
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/.


Windham, Kristopher R. 11-11-2007 07:58 PM

Re: DBI - error loading driver
 
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/.
>




Peter Vanderhaden 11-11-2007 08:07 PM

Re: DBI - error loading driver
 
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/.



All times are GMT. The time now is 09:01 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57