|
|
Sponsor |
configure: error: Could not find working MySQL client library!: msg#00035db.mysql.c++
I get the following error when I run configure on Fedora Core 5 (kernel 2174): ... checking for MySQL library directory... /usr/lib/mysql checking for MySQL include directory... /usr/include/mysql checking for mysql_store_result in -lmysqlclient... no configure: error: Could not find working MySQL client library! I don't understand why I get the error. According to the configure log output, the library and include directories are configured properly (/usr/lib/mysql and /usr/include/mysql). The MySQL client library is present in /usr/lib/mysql. If I comment out the error log in the configure script and add the following statement in the else clause that contains the error log: LIBS="-l$MYSQL_C_LIB $LIBS" then, configure succeeds. But then, there is a problem with connection.cpp. I get the following error: /usr/include/mysql/mysql.h: In member function ?bool mysqlpp::Connection::shutdown()?: /usr/include/mysql/mysql.h:497: error: too few arguments to function ?int mysql_shutdown(MYSQL*, mysql_enum_shutdown_level)? ./connection.cpp:271: error: at this point in file The problem is that SHUTDOWN_ARG is not defined because HAVE_MYSQL_SHUTDOWN_LEVEL_ARG is not defined. Not sure why configure does not set this properly. Finally, when I perform make install, things are not installed where expected. All files are installed in /usr/local/lib and /usr/local/include instead of /usr/bin and /usr/include. I have no problem getting mysql++ built on Fedora Core 4. Not sure if there are ways to troubleshoot these issues. Martin --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Exception occurring while running resetdb, Gary Anderson |
|---|---|
| Next by Date: | Still having pointer problems with mysqlpp examples., Gary Anderson |
| Previous by Thread: | Re: configure: error: Could not find working MySQL client library!, Radu Brehar |
| Next by Thread: | configure: error: Could not find working MySQL client library!, Martin Dubuc |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|