PHP 5.0.4 mysql error

From: Date: Sun, 05 Jun 2005 06:51:27 +0000
Subject: PHP 5.0.4 mysql error
Groups: php.install 
Request: Send a blank email to php-install+get-16195@lists.php.net to get a copy of this message
I'm getting a mysql error when trying to install php 5.0.4 (as module) on my linux machine. Before I say anything else, I have php 4.3.8 running on the same machine, it installs fine with mysql. I don't even have to do anything special, I just add --with-mysql and it installs it fine. I know it's installed ok because I'm using mysql extensively in my php 4 apps that I develop on this machine. (and it says so in phpinfo()) The version mysql I have installed is: mysql Ver 12.22 Distrib 4.0.17, for pc-linux (i686) Here's my configure line: ../configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --prefix=/usr/local/php504 --with-gd --with-zlib-dir=/usr/local --with-png-dir=/usr/lib --with-jpeg-dir=/usr/local --with-config-file-path=/usr/local/apache2/conf/php5 I don't know how much text you want but here's the last few lines before it dies: checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock 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. This is some of the huge log: configure:56352: checking for MySQL support configure:56398: checking for specified location of the MySQL UNIX socket configure:56455: checking for MySQL UNIX socket location configure:56611: checking for mysql_close in -lmysqlclient configure:56630: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lmysqlclient -lpng -lz -ljpeg -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 56619 "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(); Again, compiling php 4.3.8 on the same machine (with the same configure line, excep prefix path different), works fine. Let me know what other info I can give you.

« previous php.install (#16195) next »