LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot configure MySQL ODBC connector on FC11 x86_64 (https://www.linuxquestions.org/questions/linux-software-2/cannot-configure-mysql-odbc-connector-on-fc11-x86_64-a-776578/)

Doug Hutcheson 12-17-2009 11:45 PM

Cannot configure MySQL ODBC connector on FC11 x86_64
 
I have MySQL installed and running. Libraries are in /usr/lib64/mysql. I have downloaded the ODBC connector source from the MySQL download page. The configure script fails with message:
Code:

checking for mysql_real_query... no
configure: error: Could not use the single thread MySQL client library, please check config.log for errors

The error in config.log is:
Code:

configure:11534: checking for mysql_real_query
configure:11590: gcc -o conftest -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -DUNIV_LINUX -DUNIV_LINUX -g -O2  conftest.c -lz  -rdynamic -L/usr/lib64/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -lssl -lcrypto >&5
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status

If I run "configure --with-mysql-path=/usr/lib64/mysql", it fails with:
Code:

configure: error: File /usr/lib64/mysql/bin/mysql_config doesn't exists or isn't executable.  Please specify with --with-mysql-path where bin/mysql_config can be found
/usr/lib64/mysql/bin does not exist. If I explicitly create a bin directory and copy mysql_config into it, configure fails with: "Could not use the single thread MySQL client library, please check config.log for errors" again. /usr/lib64/mysql contains the following:
Code:

libmysqlclient_r.so.16      libmysqlclient.so.16      libmysqld.so.0      libndbclient.so.3      mysqlbug      plugin
libmysqlclient_r.so.16.0.0  libmysqlclient.so.16.0.0  libmysqld.so.0.0.1  libndbclient.so.3.0.0  mysql_config

I suspect libmysqlclient_r.so is not found because it is named libmysqlclient_r.so.16, but don't want to dig a deeper hole by starting to rename libraries. Any help would be appreciated.

Doug Hutcheson 12-18-2009 02:16 AM

Solved by making a symlink for libmysqlclient_r.so pointing to libmysqlclient_r.so.16.0.0


All times are GMT -5. The time now is 11:36 AM.