[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Stephen Harmon wrote:
Hi Jason. Thanks for responding. I compiled Mysql from source using
the following configure options:
|/./configure --with-openssl --with-isam --prefix=/usr/local/mysql/
I did a "locate mysql.h" on my server and found it in the following
location:
|
//usr/local/mysql/include/mysql/mysql.h/
If I am not mistaken, it looks like the "devel" libraries are
installed. Is it looking for it in a different location?
Well, if you installed MySQL by hand, then yeah.. :) So, based on
that, I'd say you probably need to add /usr/local/mysql/include/mysql to
the paths checked for when compiling. You can do this by adding
-I/usr/local/mysql/include/mysql to conf-cc I believe.
OK, I added "-I/usr/local/mysql/include/mysql" to the conf-cc file. It
currently looks like this:
cc -O2 -DTLS=20040120 -I/usr/local/ssl/include
-I/usr/local/mysql/include/mysql
However, I still get the error during make. I also tried going in the
same directory and made a symbolic link to
/usr/local/mysql/include/mysql,
but that didn't help. Any other ideas?
Hi,
Change line 15 of local_scan.c to match your location of mysql.h
Regards,
Rick
Thanks Rick and Jason. I changed line 15 of local_scan.c and got past the
part where it was failing. The remaining question I have now is on the
error I am getting now. I am getting the following during make:
make: *** No rule to make target `/usr/lib/mysql/libmysqlclient.a', needed
by `qmail-envelope-scanner'. Stop.
Do you know what file I need to change to update the above target to what
it really is "/usr/local/mysql/lib/mysql/libmysqlclient.a". I can see
that it is written in the Makefile wrong, but don't know where it pulled
it from.
Hi,
I have it in my Makefile in two places
Makefile:load qmail-envelope-scanner.o local_scan.o
/usr/local/mysql/lib/libmysqlclient.a
Makefile: ./load qmail-envelope-scanner -lz -lm local_scan.o
/usr/local/mysql/lib/libmysqlclient.a
Regards,
Rick