Hi,
I've searched the internet and couldn't solve the PHP configure problem yet.
For More Info, I pasted the last lines of the config.log as below.
Anyone can help me?

configure:69058: checking for mysql_query in -l
configure:69077: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden  
-L/usr/lib  conftest.c -l  -lpng -lz -ljpeg -lcurl -lrt -lm -ldl -lnsl  -lrt 
-lxml2 -lz -lm -lcurl -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -l-lpng
collect2: ld returned 1 exit status
configure: failed program was:
#line 69066 "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_query();
int main() {
mysql_query()
; return 0; }
configure:69430: checking for mysql_query in -l


--

----------------------------------
Thanks and Regards,
Tracy Zou (邹琴)



At 2013-01-24 18:27:13,"邹琴" <[email protected]> wrote:


HI,
   
When I installed the PHP part following the Web Serving instructions and I used 
the command as below,
[root@localhost php-5.3.9]# ./configure --enable-fpm --with-curl 
--with-pdo-mysql=/usr/mysql/mysql-5.5.20-linux2.6-x86_64 --with-gd 
--with-jpeg-dir --with-png-dir 
--with-config-file-path=/var/www/webapp/etc/php.ini
 
and there came an error:
checking for mcrypt support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... no
checking whether to enable embedded MySQLi support... no
checking for Oracle Database OCI8 support... no
checking whether to enable pcntl support... no
checking whether to enable PDO support... yes
checking for PDO_DBLIB support via FreeTDS... no
checking for Firebird support for PDO... no
checking for MySQL support for PDO... yes
checking for mysql_config... not found
checking for mysql install under /usr/mysql/mysql-5.5.20-linux2.6-x86_64... 
libs under /usr/mysql/mysql-5.5.20-linux2.6-x86_64/lib; seems promising
checking for mysql_query in -l... no
checking for mysql_query in -l... (cached) no
configure: error: PDO_MYSQL configure failed. Please check config.log for more 
information.

can anyone help me?

--

----------------------------------
Thanks and Regards,
Tracy Zou



Reply via email to