Can't Load error...

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
25,333
Location
California
I'm trying to install a product arp3... I get this error:

<snip>
install_driver(mysql) failed: Can't load '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.10: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206.
at (eval 2) line 3

Compilation failed in require at (eval 2) line 3.

Perhaps a required shared library or dll isn't installed where expected
at arp3-data.pl line 1
</snip>

I must admit only little experience with MySQL.

Can anyone please tell me what I should be looking for?

Thanks.

Jeff
 
Hello,

You have DBD::myql and DBI installed already?

perhaps check your /etc/ld.so.conf file to make sure that /usr/lib/mysql is in it. If it isn't, add it, and then run "ldconfig".. not sure if that's the problem, but it's something to check. I'm not sure what packge "DynaLoader" comes with.. maybe try and figure out where it's from and then add it.

John
 
I have DBI installed.

Unfortunately I'm not sure how to tell if DBD::mysql is installed or not :( .
I don't think so, because:

[root@bes RPMs]# rpm -qa | grep DBD
perl-DBD-Pg-1.01-8
[root@bes RPMs]#

Do you install it from source as part of your DA install? Otherwise, no, it's not installed.

But when I try to install it:

[root@bes RPMs]# rpm -ivh perl-DBD-MySQL-1.2219-6.i386.rpm
error: failed dependencies:
libmysqlclient.so.10 is needed by perl-DBD-MySQL-1.2219-6
[root@bes RPMs]#

and I don't know how to install libmysqlclient.so.10.

[root@bes RPMs]# locate libmysqlclient
/usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.la
/usr/lib/mysql/libmysqlclient_r.a
/usr/lib/mysql/libmysqlclient_r.la

but no .so file. I can't figure out where to find it except in an rpm. I have it on another machine, running Plesk; will just copying it over work, or do I have to get it into the RPM database as well?

I'd like to install this the "right" way, and I can't afford to break this box, so any help you can give me will be appreciated.

Thanks.

Jeff
 
actually it looks like it is installed, since I do find:

usr/lib/perl5/site_perl/5.6.1/i386-linux/Bundle/DBD/mysql.pm
/usr/lib/perl5/site_perl/5.6.1/i386-linux/DBD/mysql.pm

on the system.

Any ideas? This is a new DA box and I need to get it running for the client's sites asap.

Thanks.

Jeff
 
Back
Top