|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-03 23:02 UTC] iliaa@php.net
[2005-01-04 07:51 UTC] ruempler at topconcepts dot de
[2005-01-10 02:21 UTC] sniper@php.net
[2005-01-10 07:56 UTC] ruempler at topconcepts dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 12:00:02 2025 UTC |
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; }