Linux - Dependency Libmysqlclient.So.15 Not Found

libmysqlclient.so.15: cannot open shared object file: No such file or directory

Okay this saves the day.

wget -O /usr/lib64/libmysqlclient.so.15 http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.15
chmod 755 /usr/lib64/libmysqlclient.so.15
ldconfig

mysql2.so: libmysqlclient_r.so.15: cannot open shared object file: No such file or directory

If you encounter this error again after upgrading to 12.04 (or for people arriving here after googling the title of this page after upgrading to 12.04), the following worked for me:

gem uninstall mysql2
gem install mysql2

This will recompile the gem using libmysqlclient18, and worked for me.

Hope that helps someone out there.

Upgraded to Ubuntu 16.04 now MySQL-python dependencies are broken

I ended up finding the solution to my problems with pip install --no-binary MySQL-python MySQL-python
as stated in this thread : Python's MySQLdb can’t find libmysqlclient.dylib with Homebrewed MySQL

libmysqlclient.a is nowhere to be found

bobobobo! You are so wrong.

First of all, you don't need a libmysqlclient.a file, when you have the .so file. The .a file is for static linking, .so file for dynamic linking.. .so files are decidely better and make you cool.

The problem you get when you try and compile without library link is

g++ main.cpp

Gives

undefined reference to `mysql_init'

But that can be fixed with

g++ main.cpp `mysql_config --cflags --libs`

Error Installing Sphinx Requires libmysqlclient.so.16(libmysqlclient_16)(64bit)

I noticed that due to missing mysql dependency issue in 64bit CENTOS it wasn't possible for me to install through YUM. I installed Sphinx from Source tarball package using the command below:

# wget http://sphinxsearch.com/files/sphinx-2.1.7-release.tar.gz
# tar -zxf 'sphinx-2.1.7-release.tar.gz'
# cd sphinx-2.1.7-release
# mkdir /usr/local/sphinx
# ./configure --prefix=/usr/local/sphinx
# make
# make install


Related Topics



Leave a reply



Submit