Re: After install DBD:mysql, perl still can't connect to mysql
Quoc,
Hello!
Questions:
- What OS are you using?
- What version of mysql, and is it a binary distribution you obtained
from MySQL's download site?
- What compile options did you use to build DBD::msyql?
I suspect that this is a mistmatch between you MySQL libraries being
built with a different compiler/flags that the binary was built with and
DBD::mysql being built by you with compiler flags of your own server.
regards,
Patrick
Quoc Tuan wrote:
>hi, > >I installed DBI, DBD:mysql, but when i use perl for connecting to mysql, some error has been occured. > >install_driver(mysql) failed: Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/mysql/mysql.so' for module DBD::mysql: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/mysql/mysql.so: undefined symbol: __pure_virtual at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230. > at (eval 4) line 3 >Compilation failed in require at (eval 4) line 3. >Perhaps a required shared library or dll isn't installed where expected > at first.pl line 6 > >My perl page : first.pl >#!/usr/bin/perl -w >use CGI qw(:standard); >use CGI::Carp; >use DBI; >$conn = DBI->connect('DBI:mysql:db_asterisk','root',''); > >It always errors at $conn = DBI->connect('DBI:mysql:db_asterisk','root','') > >Please guide me to install that perl can connect to mysql > > >Best regards >QTuan > >
--
Patrick Galbraith, Senior Programmer
Grazr - Easy feed grazing and sharing
http://www.grazr.com
Satyam Eva Jayate - Truth Alone Triumphs
Mundaka Upanishad
--
MySQL Perl Mailing List
For list archives:
http://lists.mysql.com/perl
To unsubscribe:
http://lists.mysql.com/perl?unsub=lists@pantek.com
Received on Sat Jul 28 11:23:11 2007
This archive was generated by hypermail 2.1.8
: Thu Aug 09 2007 - 19:30:42 EDT
|