MySQL Forums
Forum List  »  Connector/C++

Could not find dynamic "mysqlclient_r mysqlclient" in MYSQL_LIB_DIR
Posted by: Bexu Datum
Date: October 23, 2017 07:37AM

Hello! I'm trying to build Connector/C++ on CentOS 7. When I run "cmake ." I get the following output:

-- Boost version: 1.65.1
-- BOOST_INCLUDE_DIRS=/usr/local/boost_1_65_1
-- You will link dynamically to the MySQL client library (set with -DMYSQLCLIENT_STATIC_LINKING=<bool>)
-- Searching for dynamic libraries with the base name(s) "mysqlclient_r mysqlclient"
-- mysql_config was found /bin/mysql_config
CMake Error at FindMySQL.cmake:406 (message):
Could not find dynamic "mysqlclient_r mysqlclient" in MYSQL_LIB_DIR
"/usr/lib64"
Call Stack (most recent call first):
FindMySQL.cmake:649 (_check_lib_search_error)
CMakeLists.txt:252 (INCLUDE)

Even though I have the following files inside /usr/lib64:
./libmysqlclient.so.15
./libmysqlclient.so.15.0.0
./libmysqlclient.so.16
./libmysqlclient.so.16.0.0
./libmysqlclient.so.18
./libmysqlclient.so.18.0.0
./libmysqlclient_r.so.15
./libmysqlclient_r.so.15.0.0
./libmysqlclient_r.so.16
./libmysqlclient_r.so.16.0.0

Anything I can do? Thanks!

Options: ReplyQuote


Subject
Views
Written By
Posted
Could not find dynamic "mysqlclient_r mysqlclient" in MYSQL_LIB_DIR
103
October 23, 2017 07:37AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.