LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2009, 11:45 PM   #1
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 35; Acer Aspire 16Gb; Intel Core-i7. Using Red Hat since 1998
Posts: 293

Rep: Reputation: 22
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.
 
Old 12-18-2009, 02:16 AM   #2
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 35; Acer Aspire 16Gb; Intel Core-i7. Using Red Hat since 1998
Posts: 293

Original Poster
Rep: Reputation: 22
Solved by making a symlink for libmysqlclient_r.so pointing to libmysqlclient_r.so.16.0.0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ODBC MySQL on x86_64 FC11 Doug Hutcheson Linux - Software 5 12-17-2009 06:27 AM
root account in FC11 x86_64 masterofNanako Linux - Distributions 4 08-11-2009 12:24 PM
FC11 X86_64 occasional instability terry-duell Fedora 1 06-22-2009 08:18 PM
How to configure MySql ODBC julian.osorio Linux - Software 1 06-09-2006 04:02 AM
how to specify the database connector like odbc jdbc for connecting to an msaccess msalimane Mandriva 1 12-08-2004 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration