LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Error using DBI with Perl (http://www.linuxquestions.org/questions/ubuntu-63/error-using-dbi-with-perl-598827/)

bostonantifan 11-11-2007 02:47 PM

Error using DBI with Perl
 
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....


All times are GMT -5. The time now is 11:47 AM.