Centos – Install libthesqlclient on CentOs 7

centosMySQL

I am trying to build mysql-shell 1.0.11 from src. RPMs are not an option when I am installing. One of the requirements is libmysqlclient 5.7+. I have installed mysql++, mysql++-devel, mysql-connector-python.noarch, and mysql-workbench-community. When I try to build (Cmake) I get the following error.

Could not find static "libmysqlclient_r.a libmysqlclient.a" in MYSQL_LIB_DIR

What do I need to have installed to make this work? Obviously I need libmysqlclient, but there is nothing listed in yum with that name or close to that name.

Using CentOs7.

TIA

Best Answer

yum whatprovides can find package with specific command or lib, for example:

sudo yum whatprovides libmysqlclient*

1:mariadb-libs-5.5.56-2.el7.i686 : The shared libraries required for
                                 : MariaDB/MySQL clients
Repo        : base
Matched from:
Provides    : libmysqlclient.so.18
Provides    : libmysqlclient.so.18(libmysqlclient_16)
Provides    : libmysqlclient.so.18(libmysqlclient_18)

and

sudo yum install mariadb-libs-5.5.56-2.el7.i686

But I'm not sure it's a good idea to install mysql-shell from src, when you can get with simple yum install mysql

Related Question