Re: [Sqlrelay-discussion] Installing sql relay on Mac OS X with MySQL support
Brought to you by:
mused
|
From: David M. <dav...@fi...> - 2008-05-01 15:30:13
|
It looks like the tweaks to the configure script didn't do the job. Try adding them around line 23992. Did the MacPorts version of mysql come with a mysql_config script? If so, you should just have to provide the configure script with it's prefix. For example, if it's in /opt/local/bin/mysql_config, then you could use: ./configure --with-mysql-prefix=/opt/local And it will find the mysql_config script and use it to get the paths for libs and include files. And everything should go well. Otherwise, you're on the right track. It looks like the tweaks to the configure script just didn't do the job. Try adding them around line 23992 which is right before the tests are run. You'll know it worked if the various "checking for XXX" lines output by the configure script say "yes" sometimes. David Muse dav...@fi... On Wed, 2008-04-30 at 15:59 +0200, Holger Amann wrote: > Hi! > > I'm trying to compile sql relay on OS X 10.5.2 with MySQL 5.0.51 > installed by MacPorts in /opt/local/libs/mysql5/mysql and /opt/local/ > include/mysql5/mysql. Because configure didn't find the headers and > libs, I played with configure.mk.in and set > > MYSQLINCLUDES = -I/opt/local/include/mysql5/mysql > MYSQLLIBS = -L/opt/local/libs/mysql5/mysql > > , and I modified configure with > > MYSQLINCLUDES="/opt/local/include/mysql5/mysql" > MYSQLLIBS="/opt/local/libs/mysql5/mysql" > > This results in > > ... > ***** MySQL ****************** > checking for mysql_real_connect... no > checking for mysql_select_db... no > checking for mysql_ping... no > checking for mysql_change_user... no > checking for mysql_commit... no > checking for mysql_rollback... no > checking for mysql_autocommit... no > checking for mysql_prepare... no > checking for mysql_next_result... no > checking for CR_SERVER_GONE_ERROR... no > checking for CR_SERVER_LOST... no > checking for FIELD_TYPE_YEAR... no > checking for FIELD_TYPE_NEWDATE... no > checking for FIELD_TYPE_ENUM... no > checking for FIELD_TYPE_SET... no > checking for FIELD_TYPE_NEWDECIMAL... no > checking for MYSQL_OPT_RECONNECT... no > checking for MYSQL_GET_SERVER_VERSION... no > mysql includes... /opt/local/include/mysql5/mysql > mysql libs... /opt/local/libs/mysql5/mysql > ... > > and make aborts with > ... > make -C connection all > make[2]: Nothing to be done for `all'. > make -C connections all > make -C status all > make[3]: Nothing to be done for `all'. > make -C mysql all > /bin/sh ../../../libtool --mode=compile g++ -Wall -pipe -Wno-long- > double -I/opt/local/include/mysql5/mysql -pthread -I./ -I../../../ - > I../../../src/common -I../../../src/util -I../../../src/connection -I/ > usr/local/firstworks/include -pthread -I/opt/local/include -I/opt/ > local/include/mysql5/mysql -I../../../src/api/c++/include -c > mysqlconnection.C -o mysqlconnection.lo > g++ -Wall -pipe -Wno-long-double -I/opt/local/include/mysql5/mysql - > pthread -I./ -I../../../ -I../../../src/common -I../../../src/util - > I../../../src/connection -I/usr/local/firstworks/include -pthread -I/ > opt/local/include -I/opt/local/include/mysql5/mysql -I../../../src/api/ > c++/include -c mysqlconnection.C -fno-common -DPIC -o .libs/ > mysqlconnection.o > mysqlconnection.C: In member function 'virtual bool > mysqlconnection::logIn(bool)': > mysqlconnection.C:102: error: 'mysql_connect' was not declared in this > scope > mysqlconnection.C:70: warning: unused variable 'dbval' > make[3]: *** [mysqlconnection.lo] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [all] Error 2 > make: *** [all] Error 2 > ... > > I want to write an application based on sql relay, but I have no idea > how to resolve this. > Thanks for any hint or suggestion! > > Holger > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > > > __________________________________________________ > D O T E A S Y - "Join the web hosting revolution!" > http://www.doteasy.com __________________________________________________ D O T E A S Y - "Join the web hosting revolution!" http://www.doteasy.com |