Error in connecting to mysql from perl

hegdes

Registered
Jan 15, 2014
1
0
1
cPanel Access Level
Website Owner
Hi,

Whenever I try to connect to MySQL database from a sample perl script, I get the below error. But the DBI and DBD::MySQL modules are already installed in my CPanel.


install_driver(mysql) failed: Can't load '/usr/local/lib/perl5/site_perl/5.8.8/i686-linux/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: No such file or directory at /usr/local/lib/perl5/5.8.8/i686-linux/XSLoader.pm line 68.
at /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/DBD/mysql.pm line 15.
Compilation failed in require at (eval 8) line 3.
Perhaps a required shared library or dll isn't installed where expected
at test.pl line 14.

Can anyone help me?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

Your access level is listed as "Website Owner". Assuming this is accurate and you do not have root access to the system, I recommend contacting your web hosting provider for assistance with this issue.

Thank you.