ID: 31388
Updated by: [EMAIL PROTECTED]
Reported By: ruempler at topconcepts dot de
-Status: Open
+Status: Feedback
Bug Type: *Configuration Issues
Operating System: Fedora Core 2
PHP Version: 5.0.3
New Comment:
What does ls -l /usr/lib/*mysql* show?
Previous Comments:
------------------------------------------------------------------------
[2005-01-03 14:18:17] ruempler at topconcepts dot de
Description:
------------
PHP 5.0.3 does not find the MySQL libraries in configure. PHP 5.0.1 on
the same machine compiled without any problems. Adding zlib-dir as
mentioned below does *not* help (same config.log errors)-
Reproduce code:
---------------
#! /bin/sh
#
# Created by configure
'./configure' \
'--prefix=/usr' \
'--with-mysql=/usr' \
'--with-apxs2=/usr/sbin/apxs' \
'--enable-soap' \
"$@"
Actual result:
--------------
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.
config.log:
configure:53830: checking for MySQL support
configure:53876: checking for specified location of the MySQL UNIX
socket
configure:53933: checking for MySQL UNIX socket location
configure:54089: checking for mysql_close in -lmysqlclient
configure:54108: gcc -o conftest -g -O2 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 54097 "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_close();
int main() {
mysql_close()
; return 0; }
configure:54470: checking for mysql_errno in -lmysqlclient
configure:54489: gcc -o conftest -g -O2 conftest.c -lmysqlclient -lz
-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 54478 "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; }
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31388&edit=1