LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to fix error install_driver(mySQL) failed? (https://www.linuxquestions.org/questions/programming-9/how-to-fix-error-install_driver-mysql-failed-554670/)

vihanh2007 05-17-2007 01:09 PM

How to fix error install_driver(mySQL) failed?
 
Hello!

I am taking over a system which has
MySQL in redhat 9.0
Apache-DBI-1.06.tar.gz
DBD-mysql-4.004
Perl 5.004

and trying to get a web application to access the Mysql db.
All command line and mysql utilities work fine. Perl itself
works fine.

But.......

when attempting to connect in the perl code it gives the following error
during the

dbh$->connect("DBI:mysql:$mydb",.....

-----------
install_driver(mysql) failed: Can't load '/usr/local/lib/perl5/site_perl/
i386-fr eebsd/auto/DBD/mysql/mysql.so' for module DBD::mysql: Undefined s
ymbol "___sstderr" in perl:/usr/local/lib/perl5/site_perl/i386-freebsd/au
to/DBD/mysql/mysql.so
at /usr/local/lib/perl5/i386-freebsd/5.004/DynaLoader.pm line 155.

at (eval 1) line 2

at test.cgi line 36
-----------
You can resolving step by step?

krizzz 05-18-2007 02:25 PM

It seems your DBD::mysql Perl module is missing or broken. Try upgrading it with CPAN.

Code:

perl -MCPAN -e "shell"
cpan> install DBD::mysql

If you haven't used CPAN before, it will prompt you for some initial configuration options, so read and answer them carefully.


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