Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Perl/MySQL Question

Reply
Thread Tools

Perl/MySQL Question

 
 
John D. Sanders
Guest
Posts: n/a
 
      12-30-2004
When I try to run a Perl script that uses DBI I get the following error
message.

[sanders@ns1 perl]$ ./dbtest.pl
install_driver(mysql) failed: Can't load
'/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so'
for module DBD::mysql: /usr/lib/libmysqlclient.so.10: symbol errno,
version GLIBC_2.0 not defined in file libc.so.6 with link time reference
at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
at ./dbtest.pl line 37

Any ideas?
 
Reply With Quote
 
 
 
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      12-30-2004
John D. Sanders wrote:
> When I try to run a Perl script that uses DBI ...


Don't multi-post!

http://www.uwasa.fi/~ts/http/crospost.html

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
 
Reply With Quote
 
 
 
 
Henry Law
Guest
Posts: n/a
 
      12-30-2004
On Wed, 29 Dec 2004 19:21:33 -0700, "John D. Sanders"
<(E-Mail Removed)> wrote:

>When I try to run a Perl script that uses DBI I get the following error
>message.
>
>[sanders@ns1 perl]$ ./dbtest.pl
>install_driver(mysql) failed: Can't load
>'/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so'
>for module DBD::mysql: /usr/lib/libmysqlclient.so.10: symbol errno,
>version GLIBC_2.0 not defined in file libc.so.6 with link time reference
>at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
> at (eval 1) line 3
>Compilation failed in require at (eval 1) line 3.
>Perhaps a required shared library or dll isn't installed where expected
> at ./dbtest.pl line 37


Did the MySQL install complete as expected? Did you yourself install
the DBI and MySQL perl modules (I forget what they're called), did you
follow the instructions and did they build correctly? Have you
verified that there is a "mysql.so" file at that location?

It sounds like a failed installation of something, either MySQL or the
perl interface modules.
--

Henry Law <>< Manchester, England
 
Reply With Quote
 
Alan Mead
Guest
Posts: n/a
 
      01-01-2005
Star date: Wed, 29 Dec 2004 19:21:33 -0700, John D. Sanders's log:

> When I try to run a Perl script that uses DBI I get the following error
> message.
>
> [sanders@ns1 perl]$ ./dbtest.pl
> install_driver(mysql) failed: Can't load
> '/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so'
> for module DBD::mysql: /usr/lib/libmysqlclient.so.10: symbol errno,
> version GLIBC_2.0 not defined in file libc.so.6 with link time reference
> at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at ./dbtest.pl line 37
>
> Any ideas?


Nope. But it looks like you have a problem with your installation of
DBD::mysql or possibly MySQL. Why don't you tell us about those packages
and how you've tested that they work properly.

-Alan

 
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
question row filter (more of sql query question) =?Utf-8?B?YW5kcmV3MDA3?= ASP .Net 2 10-06-2005 01:07 PM
Quick Question - Newby Question =?Utf-8?B?UnlhbiBTbWl0aA==?= ASP .Net 4 02-16-2005 11:59 AM
Question on Transcender Question :-) eddiec MCSE 6 05-20-2004 06:59 AM
Question re: features of the 831 router (also a 924 question) Wayne Cisco 0 03-02-2004 07:57 PM
Syntax Question - Novice Question sean ASP .Net 1 10-20-2003 12:18 PM



Advertisments