#12 Can't find mysql source install

open
nobody
None
5
2003-08-25
2003-08-25
Chris Bolt
No

I install mysql from source, with its default prefix of
/usr/local which puts headers in
/usr/local/include/mysql and libraries in
/usr/local/lib/mysql, but when I configure with
--with-mysql=/usr/local, it looks for headers in
/usr/local/include and compilation fails. I fixed it by
changing lines 332-333 of the configure script to:

CFLAGS="$CFLAGS -I$with_mysql/include/mysql"
LDFLAGS="$LDFLAGS -L$with_mysql/lib/mysql"

Maybe you could make it autodetect in future versions.

Discussion