I think that�s because MySQL is not on the expected locations.

In my system, mysql headers are on /usr/include/mysql/ and /usr/lib/mysql/

First search if the files are already on your system. If they are, try
playing with the --with-mysql= configure files.

If everything fails, make a symlink on the "right" places to the headers and
lib directories:

ln -s /usr/local/mysql/include/mysql /usr/include/mysql

and

ln -s /path/to/libmysqlclient/dir /usr/lib/mysql

(If the same logic applies, that should be /usr/lib/mysql/lib/mysql but I
don�t know... try with "locate libmysqlclient.a" )

Regards,

----- Original Message ----- 
From: "Peter Beckman" <[EMAIL PROTECTED]>
To: "kannel users list" <[EMAIL PROTECTED]>
Sent: Wednesday, June 09, 2004 7:49 PM
Subject: MySQL Include Dir a problem


> Under the recent problem a guy had, I'm having a similar problem...
>
> Configuring DB support ...
> checking whether to compile with MySQL support... searching in
/usr/local/mysql
> checking for /usr/local/mysql/include/mysql/mysql.h... no
> checking for /usr/local/mysql/include/mysql.h... yes
> checking for mysql/mysql.h... (cached) no
> checking for mysql/mysql_com.h... (cached) no
> checking for mysql/mysql_version.h... (cached) no
> checking for mysql_init in -lmysqlclient... (cached) no
> checking whether to compile with MySQL support... yes
> checking whether to compile with LibSDB support... disabled
>
> Configuring DLR support ...
> checking for DLR storage type... mysql
>
> Generating output files ...
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating config.h
> config.h is unchanged
> (root) opera-stg: 0 : ~/gateway-1.3.1 --> make
> Makefile:304: .depend: No such file or directory
> for dir in gw gw/smsc gwlib test utils wmlscript checks wap; do \
>








gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/local/include/libxml2 -I/usr/local
/mysql/include -MM $dir/*.c | sed "s:^[^ ]:$dir/&:"; done > .depend
> In file included from gw/bearerbox.c:23:
> gw/dlr.h:31:25: warning: mysql/mysql.h: No such file or directory
> In file included from gw/dlr.c:33:
> gw/dlr.h:31:25: warning: mysql/mysql.h: No such file or directory
> In file included from gw/smsc/smsc_at2.c:36:
> gw/dlr.h:31:25: warning: mysql/mysql.h: No such file or directory
> In file included from gw/smsc/smsc_cgw.c:64:
>
>
> I know what's wrong, but it is just annoying.
>
> The config script finds /usr/local/mysql/include/mysql.h
>
> But the following GCC does not.  ARGH!
>
> Beckman
> --------------------------------------------------------------------------
-
> Peter Beckman                                                  Internet
Guy
> [EMAIL PROTECTED]
http://www.purplecow.com/
> --------------------------------------------------------------------------
-
>
>


Reply via email to