Выполняю установку php точно по инструкции (http://www.php.net/manual/ru/install.apache.php)
однако ./configure --with-mysql=/mysql --with-apxs=/www/bin/apxs выдаёт следующее:
...
...
checking for mysql_close in -lmysqlclient... no
checking for mysql_errno in -lmysqlclient... no
configure: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information.
Посмотрел указанный файл:
...
...
char mysql_close();
int main() {
mysql_close()
; return 0; }
configure:56423: checking for mysql_errno in -lmysqlclient
configure:56442: gcc -o conftest -g -O2 -Wl,-rpath,/mysql/lib -L/mysql/lib conftest.c -lmysqlclient -lz -lresolv -lm -ldl -lnsl 1>&5
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
configure: failed program was:
#line 56431 "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_errno();
int main() {
mysql_errno()
; return 0; }
это всё, что там про mysql_close и про mysql_errno написано
Что же касается "Try adding --with-zlib-dir=<DIR>", то пробовал разные варианты, не получается (путь не тот).
Подскажите кто чем сможет.