XFileSharing Pro - install_driver(mysql) failed: Can't locate DBD/mysql.pm

Message
Author
mjdj1999
Posts: 31
Joined: Jul 14, 2014 4:14 am

install_driver(mysql) failed: Can't locate DBD/mysql.pm

#1 Postby mjdj1999 » Jul 27, 2014 9:04 am

I have already installed this on another server to test it out and had no problems. Now when I go to install on a production server I get this during install. I have installed everything that is needed in the instructions and had no errors. Any ideas?

Software error:

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: . Plugins Modules /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at Modules/Session.pm line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge.
at install.cgi line 193.

admin
Site Admin
Posts: 1824
Joined: Mar 22, 2006 12:32 pm

#2 Postby admin » Jul 27, 2014 4:01 pm

DBD::mysql perl module is missing

mjdj1999
Posts: 31
Joined: Jul 14, 2014 4:14 am

#3 Postby mjdj1999 » Jul 27, 2014 7:54 pm

Thank you for your reply.

Can you please provide any additional info on this? Yes I have searched and found several topics and tried nearly all of them with no success. I'm using CENTOS 6.5 x86_64

I have tried:
perl -MCPAN -e shell
cpan> install DBD::mysql

Also tried:
cpan DBD::mysql

My last attempt was this:
yum install perl-DBD-MySQL

There was no errors and it still didn't work. I just can't figure out why this would work on one server but not a copy of the same server.

Thanks again

mjdj1999
Posts: 31
Joined: Jul 14, 2014 4:14 am

#4 Postby mjdj1999 » Jul 30, 2014 1:37 am

After some exhaustive searching and reading I finally found the fix!

It wasnt so much as the DBD::mysql perl module missing as it was the dependencies that stopped me from installing it. The libmysqlclient.so was the worst one.

If you are running into problems, let me know. I will be willing to help. Here is how I got past the libmysqlclient.so dependency.

Try to install DBD::mysql

Code: Select all

install DBD::mysql


If you get a dependency error like:
libmysqlclient.so is required or simular message

Force the install by using this:

Code: Select all

cpan -f -i DBD::mysql


Once again I am using Centos 6.5. Hope this helps someone.


Return to “XFileSharing Pro”