Hi all,
I am trying to build MYSQL ODBC driver from Source code for AIX platform. I am referring instructions provided in below URL.
https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-installation-source-unix.html
Below are the steps I had done so far.
- Downloaded "mysql-connector-odbc-5.3.9-src.tar" source code
- Extracted the tar to mysql-connector-odbc-5.3.9-src
- Executed 'cmake -G "Unix Makefiles"' command from inside the folder "mysql-connector-odbc-5.3.9-src"
Below is the output of CMAKE command
> cmake -G "Unix Makefiles"
-- Configuring to build Unicode driver
-- Configuring to build ANSI driver
-- 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"
CMake Error at cmake/FindMySQL.cmake:520 (message):
Could not find "mysql.h" from searching "/usr/include/mysql
/usr/local/include/mysql /opt/mysql/mysql/include
/opt/mysql/mysql/include/mysql /usr/local/mysql/include
/usr/local/mysql/include/mysql /MySQL/*/include /MySQL/*/include"
Call Stack (most recent call first):
CMakeLists.txt:81 (INCLUDE)
-- Configuring incomplete, errors occurred!
See also "/usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/CMakeFiles/CMakeOutput.log".
See also "/usr/emms_inbound/my-sql/mysql-connector-odbc-5.3.9-src/CMakeFiles/CMakeError.log".
========================
I was thinking the required files would be in source code, seems not. Could someone please advise on where I can get the client libraries and include files required for running CMAKE.
Appreciate your feedback.
Thanks,