Perl/MySQL Question

Discussion in 'Perl Misc' started by John D. Sanders, Dec 30, 2004.

  1. 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?
     
    John D. Sanders, Dec 30, 2004
    #1
    1. Advertising

  2. Gunnar Hjalmarsson, Dec 30, 2004
    #2
    1. Advertising

  3. John D. Sanders

    Henry Law Guest

    On Wed, 29 Dec 2004 19:21:33 -0700, "John D. Sanders"
    <> 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
     
    Henry Law, Dec 30, 2004
    #3
  4. John D. Sanders

    Alan Mead Guest

    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
     
    Alan Mead, Jan 1, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JL
    Replies:
    0
    Views:
    1,178
  2. Ravi
    Replies:
    6
    Views:
    1,444
    Suchandra Thapa
    Jul 21, 2003
  3. Replies:
    2
    Views:
    6,251
  4. washakie
    Replies:
    4
    Views:
    955
    washakie
    Jan 15, 2008
  5. Jeffrey H. Coffield
    Replies:
    1
    Views:
    1,936
Loading...

Share This Page