I try to install PHP 5.2.0 with MySQL 5.0.27 and Apache 2.2.3
[CODE]$ sudo ./configure --with-mysql=/usr/local/mysql
--with-apxs2=/usr/local/apache2/bin/apxs[/CODE].
I get the following error:-
[CODE]checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
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.
[/CODE]
Next I try,
[CODE]sudo ./configure --with-mysql=/usr/local/mysql
--with-apxs2=/usr/local/apache2/bin/apxs --with-zlib-dir=/usr/lib
--includedir=/usr/local/mysql/include[/CODE]
Still I get this,
[CODE]checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for
more information.[/CODE]
I find this in the last few lines of config.log
[CODE]collect2: ld returned 1 exit status
configure: failed program was:
#line 58262 "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_error();
int main() {
mysql_error()
; return 0; }[/CODE]
Can anyone please help me out?
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]