Quick post here for a problem that other people might run into and wonder how to fix. Let’s say you have the following error:
install_driver(mysql) failed: Can't load '/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.14: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/DynaLoader.pm line 230.
at line 3
Compilation failed in require at line 3.
Perhaps a required shared library or dll isn't installed where expected
at ./kontroll-client-5.0.x_linux-x86-2.0.1.pl line 193
Well, you probably need to symlink “libmysqlclient.so.14″ to the existing one that is most likely of a newer version.
> find / -name "libmysqlclient*"
/usr/lib64/libmysqlclient.so.15
/usr/lib64/libmysqlclient_r.so
/usr/lib64/libmysqlclient.so.15.0.0
/usr/lib64/libmysqlclient.so
So we just symlink it to fix the issue. It’s that simple.
> ln -s /usr/lib64/libmysqlclient.so.15 /usr/lib64/libmysqlclient.so.14