On Wed, 9 Jun 2004, Alejandro Guerrieri wrote:
> 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" )
I was able to compile it by making a new dir with hardlinks to the files.
I just don't think that the mysql/ directory should be there in the
include lines.
The problem is that the mysql install from source (not using rpm's) puts it
in /usr/local/mysql (then /lib, /include, etc). So while all of my headers
were found:
/usr/local/mysql/include/mysql.h
/usr/local/mysql/lib/libmysqlclient.a
When included in the source, it tried to include:
mysql/mysql.h
which doesn't exist.
I say get rid of the preceding mysql/ so gcc can look for mysql.h in the -I
specified directories for it. That way I can specify
-I /usr/local/mysql/include and gcc will find it. Right now, gcc is
looking in ./mysql/mysql.h, /usr/local/mysql/include/mysql/mysql.h, etc.
That's silliness.
#include mysql.h;
Much better.
Beckman
---------------------------------------------------------------------------
Peter Beckman Internet Guy
[EMAIL PROTECTED] http://www.purplecow.com/
---------------------------------------------------------------------------