mysql.h is in /usr/local/mysql/include/mysql. And I have locate it with --with-mysql-dir=/usr/local/mysql It should be ok I guess, but why configure fail to find it while the file is exists


Willy
sangpr...@gmail.com



On Dec 17, 2009, at 2:00 PM, Alejandro Guerrieri wrote:

Seems like you're missing the mysql headers. Check if mysql.h is on / usr/local/mysql/include/mysql or someplace else.

Regards,

Alex

On Thu, Dec 17, 2009 at 2:25 AM, uYe <sangpr...@gmail.com> wrote:
Hi,
I'm trying to install kannel with mysql support on Mac Leopard 10.5.8. And I got these error during configure and make
On configure phase:
Configuring DB support ...
checking whether to compile with MySQL support... searching
checking for mysql_config... /usr/local/mysql/bin/mysql_config
checking mysql version... 5.1.41
checking mysql reentrant libs... -L/usr/local/mysql/lib/mysql - lmysqlclient_r -lz -lm
checking for mysql_init in -lmysqlclient_r... yes
checking mysql includes... -I/usr/local/mysql/include/mysql
checking mysql/mysql.h usability... no
checking mysql/mysql.h presence... no
checking for mysql/mysql.h... no
checking mysql/mysql_version.h usability... no
checking mysql/mysql_version.h presence... no
checking for mysql/mysql_version.h... no
checking whether to compile with MySQL support... yes
checking whether to compile with LibSDB support... disabled
checking whether to compile with SQLite2 support... disabled
checking whether to compile with SQLite3 support... disabled
checking whether to compile with Oracle support... disabled
checking whether to compile with PostgresSQL support... disabled

On make phase:
gcc -std=gnu99 -D_REENTRANT=1 -I. -Igw -g -O2 -DDARWIN=1 -L/ Developer/SDKs/MacOSX10.5.sdk/usr/lib -I/Developer/SDKs/ MacOSX10.5.sdk/usr/include -D_LARGE_FILES= -I/usr/include/libxml2 -I/ usr/include/openssl -I/usr/local/mysql/include/mysql -o gw/ dlr_mysql.o -c gw/dlr_mysql.c
gw/dlr_mysql.c:74:25: error: mysql/mysql.h: No such file or directory
gw/dlr_mysql.c: In function 'mysql_update':
gw/dlr_mysql.c:102: warning: implicit declaration of function 'mysql_query' gw/dlr_mysql.c:104: warning: implicit declaration of function 'mysql_error'
gw/dlr_mysql.c: At top level:
gw/dlr_mysql.c:109: error: syntax error before '*' token
gw/dlr_mysql.c:110: warning: return type defaults to 'int'
gw/dlr_mysql.c: In function 'mysql_select':
gw/dlr_mysql.c:112: error: 'MYSQL_RES' undeclared (first use in this function) gw/dlr_mysql.c:112: error: (Each undeclared identifier is reported only once
gw/dlr_mysql.c:112: error: for each function it appears in.)
gw/dlr_mysql.c:112: error: 'result' undeclared (first use in this function) gw/dlr_mysql.c:129: warning: implicit declaration of function 'mysql_store_result'
gw/dlr_mysql.c: In function 'dlr_mysql_get':
gw/dlr_mysql.c:170: error: 'MYSQL_RES' undeclared (first use in this function) gw/dlr_mysql.c:170: error: 'result' undeclared (first use in this function) gw/dlr_mysql.c:171: error: 'MYSQL_ROW' undeclared (first use in this function)
gw/dlr_mysql.c:171: error: syntax error before 'row'
gw/dlr_mysql.c:187: warning: implicit declaration of function 'mysql_num_rows' gw/dlr_mysql.c:189: warning: implicit declaration of function 'mysql_free_result' gw/dlr_mysql.c:192: error: 'row' undeclared (first use in this function) gw/dlr_mysql.c:192: warning: implicit declaration of function 'mysql_fetch_row'
gw/dlr_mysql.c: In function 'dlr_mysql_messages':
gw/dlr_mysql.c:253: error: 'MYSQL_RES' undeclared (first use in this function) gw/dlr_mysql.c:253: error: 'result' undeclared (first use in this function) gw/dlr_mysql.c:254: error: 'MYSQL_ROW' undeclared (first use in this function)
gw/dlr_mysql.c:254: error: syntax error before 'row'
gw/dlr_mysql.c:269: error: 'row' undeclared (first use in this function)
make: *** [gw/dlr_mysql.o] Error 1

Please help and many thanks.



Willy
sangpr...@gmail.com






Reply via email to