Hi all!
I tried to follow the steps in the web to compile PHP to
use mysqli
shared:
./configure --with-mysqli=shared,/usr/bin/mysequoia_config
Although I see errors in configure like it can't find
mysqlclient
library. Why is it trying to compile statically libmysqlclient
(-lmysqlclient)?. This is the error in config.log that i got:
configure:58926: checking for MySQLi support
configure:58972: checking whether to enable embedded MySQLi
support
configure:59122: checking for mysql_set_server_option in
-lmysqlclient
configure:59141: gcc -o conftest -I/usr/include -g -O2
-Wl,-rpath,/usr/lib/mysequoia -L/usr/lib/mysequoia -L/usr/lib
-lmysequoia -lz -lcrypt -lnsl -lm conftest.c -lmysqlclient
-lresolv -lm
-ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 59130 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply.
*/
char mysql_set_server_option();
int main() {
mysql_set_server_option()
; return 0; }
in other hand, if i would try to compile statically with mysql
extension
(not mysqli) with libmyseqouia it's enough with substitute each
entry
"-lmysqlclient" with -llilbmysequoia" in configure script?
Thank you in advance.
_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob