Hi, I want to connect to my MySQL database in my C++ program. I downloaded the C++ connector source and generic linux tar (x64):
mysql-connector-c++-1.1.3-linux-glibc2.3-x86-64bit.tar.gz
mysql-connector-c++-1.1.3.tar.gz
I untarred the source and ran cmake and got these issues:
CMake Warning (dev) in CMakeLists.txt:
A logical block opening on the line
/home/bert/Downloads/mysql-connector-c++-1.1.3/CMakeLists.txt:39 (if)
closes on the line
/home/bert/Downloads/mysql-connector-c++-1.1.3/CMakeLists.txt:41 (endif)
with mis-matching arguments.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Environment compile flags:
-- Environment link flags:
-- BOOST_INCLUDE_DIRS=/usr/include
-- ENV{MYSQL_DIR} =
CMake Error at FindMySQL.cm:218 (MESSAGE):
mysql_config wasn't found, -DMYSQL_CONFIG_EXECUTABLE=...
Call Stack (most recent call first):
CMakeLists.txt:173 (INCLUDE)
CMake Error at FindMySQL.cm:220 (MESSAGE):
Cannot find MySQL. Include dir: MYSQL_INCLUDE_DIR-NOTFOUND library dir:
cxxflags:
Call Stack (most recent call first):
CMakeLists.txt:173 (INCLUDE)
-- Configuring incomplete, errors occurred!
I can confirm i installed mysql server and client.
sudo apt-get install mysql-server mysql-client
What can I do to fix this? Thanks
mysql-connector-c++-1.1.3-linux-glibc2.3-x86-64bit.tar.gz
mysql-connector-c++-1.1.3.tar.gz
I untarred the source and ran cmake and got these issues:
CMake Warning (dev) in CMakeLists.txt:
A logical block opening on the line
/home/bert/Downloads/mysql-connector-c++-1.1.3/CMakeLists.txt:39 (if)
closes on the line
/home/bert/Downloads/mysql-connector-c++-1.1.3/CMakeLists.txt:41 (endif)
with mis-matching arguments.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Environment compile flags:
-- Environment link flags:
-- BOOST_INCLUDE_DIRS=/usr/include
-- ENV{MYSQL_DIR} =
CMake Error at FindMySQL.cm:218 (MESSAGE):
mysql_config wasn't found, -DMYSQL_CONFIG_EXECUTABLE=...
Call Stack (most recent call first):
CMakeLists.txt:173 (INCLUDE)
CMake Error at FindMySQL.cm:220 (MESSAGE):
Cannot find MySQL. Include dir: MYSQL_INCLUDE_DIR-NOTFOUND library dir:
cxxflags:
Call Stack (most recent call first):
CMakeLists.txt:173 (INCLUDE)
-- Configuring incomplete, errors occurred!
I can confirm i installed mysql server and client.
sudo apt-get install mysql-server mysql-client
What can I do to fix this? Thanks