httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean Mao" <>
Subject [users@httpd] build mod_log_mysql problem
Date Thu, 31 Mar 2005 16:58:17 GMT
Hello all,

When I tried to install this module after made the necessary modification, I
run into some library problem. Someone please help me and any advise will be
really appreciated.


In the ...../modules/logger directory, I run

/usr/local/apache.maoj/bin/apxs -a -i -c -L/usr/local/mysql/lib/ -I/usr/loca
l/mysql/include/ -lmysqlclient_r -lz mod_log_mysql.c

and got following error:

/usr/local/apache.maoj//build/libtool --silent --mode=compile
-I/usr/local/apache.maoj//include  -I/usr/local/apache.maoj//include   -I/us
r/local/apache.maoj//include  -I/usr/local/mysql/include/  -c -o
mod_log_mysql.lo mod_log_mysql.c && touch mod_log_mysql.slo
/usr/local/apache.maoj//build/libtool --silent --mode=link gcc -o  -L/usr/local/mysql/lib/ -lmysqlclient_r -lz -rpath
/usr/local/apache.maoj//modules -module -avoid-version    mod_log_mysql.lo
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536

However, the file do exist and links to version in
/usr/lib/. I also add the following line to the command just in case apxs
won't automatically look in /usr/lib/ :

but still got the same error.

Thank you inadvance for your help.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message