The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

use DBI fail

Discussion in 'General Discussion' started by PCZero, Mar 29, 2013.

  1. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    524
    Likes Received:
    32
    Trophy Points:
    28
    Location:
    Earth
    I have (and have had for some time) several perl .cgi scripts that I call via cron jobs to update/clear/reset some of my MySQL tables. Starting a few weeks ago, all of these scripts are failing. All of these scripts begin with the same lines of code...

    ----------------------------
    #!/usr/bin/perl

    use DBI;

    my $dbh = DBI->connect("DBI:mysql:_DATABASE_", "_USER_", "_PASSWORD_");
    ----------------------------


    The error message I get is as follows...

    ----------------------------
    install_driver(mysql) failed: Can't load '/usr/local/lib64/perl5/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.16: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 200.
    at (eval 3) line 3
    Compilation failed in require at (eval 3) line 3.
    Perhaps a required shared library or dll isn't installed where expected at /home/foo/public_html/cgi-bin/bar.cgi line 5
    ----------------------------


    I am having a severe brain fart right now. Someone please tell me what I need to install or what script I need to run to fix this...
     
  2. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    524
    Likes Received:
    32
    Trophy Points:
    28
    Location:
    Earth
    Well instead of answering the previous question you can answer the following one...

    Why is it that within 30 seconds of posting a question my brain wakes up and I remember the solution that I was looking for?
     
Loading...

Share This Page