On Mon, Nov 29, 2004 at 04:16:30PM +0000, Jo�o Correia wrote:
> Anyone was able to compile gateway with DLR MySQL with Red Hat Fedora Core 1
> ??
>
> Regards
> Joao Correia
>
>
okay
redhat 9.1
gateway-1.4.0 yes still same mysql configure error :-(
./configure --disable-ssl --with-mysql --with-mysql-dlr=/usr
.....
Configuring DB support ...
checking whether to compile with MySQL support... searching
checking for mysql_config... /usr/bin/mysql_config
checking mysql version... 3.23.58
checking mysql libs... -L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm
checking for mysql_init in -lmysqlclient... no
configure: error: Unable to find MySQL client libraries
$ cp configure configure.orig
$ patch -p0 <mysql-redhat-configure.patch
patching file configure
Reversed (or previously applied) patch detected! Assume -R? [n]
(say Y )
$ diff -u configure configure.orig
onfiguring DB support ...
checking whether to compile with MySQL support... searching
checking for mysql_config... /usr/bin/mysql_config
checking mysql version... 3.23.58
checking mysql libs... -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm
checking for mysql_init in -lmysqlclient... yes
checking mysql includes... -I'/usr/include/mysql'
checking for mysql/mysql.h... yes
checking for mysql/mysql_version.h... yes
checking whether to compile with MySQL support... yes
checking whether to compile with LibSDB support... disabled
checking whether to compile with SQLite support... disabled
checking whether to compile with Oracle support... disabled
checking whether to compile with PostgresSQL support... disabled
so just apply the attached patch
one line change, same one line change/patch as previous on mail list
James.
--- configure 2004-11-09 14:15:18.000000000 +0000
+++ ../gateway-1.4.0/configure 2004-10-06 16:55:59.000000000 +0100
@@ -4542,7 +4542,7 @@
fi
if test -z "$MYSQL_LIBS" ; then
- MYSQL_LIBS="$($MYSQL_CONFIG --libs |sed s/\'//g)"
+ MYSQL_LIBS="$($MYSQL_CONFIG --libs)"
echo $ac_n "checking mysql libs""... $ac_c" 1>&6
echo "configure:4548: checking mysql libs" >&5
echo "$ac_t"" $MYSQL_LIBS " 1>&6