dougou6727 2011-07-27 17:51
浏览 27

使用MySQL 5.5编译PHP

I am trying to compile php 5.3.6 with mysql 5.5.4. The error I get is:

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_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 the end of the config.log file:

configure:59920: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden  -L/usr/lib64  -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -Wl,-rpath,/root/imap-2006h/c-client -L/root/imap-2006h/c$
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 59909 "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:60143: checking for mysql_error in -lmysqlclient
configure:60162: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden  -L/usr/lib64  -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -Wl,-rpath,/root/imap-2006h/c-client -L/root/imap-2006h/c$
/usr/bin/ld: cannot find -lmysqlclient                  
collect2: ld returned 1 exit status
configure: failed program was:
#line 60151 "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; }

The php config file is:

    #! /bin/sh
#
# Created by configure

'./configure' \
'--with-libdir=lib64' \
'--with-mysql=/usr' \
'--with-gd' \
'--with-zlib' \
'--with-zlib-dir=/usr/lib' \
'--with-jpeg-dir=/usr/lib' \
'--with-png-dir' \
'--with-freetype-dir=/usr/local' \
'--enable-sockets' \
'--enable-sigchild' \
'--enable-pcntl' \
'--enable-soap' \
'--with-kerberos' \
'--with-curl' \
'--with-imap=/root/imap-2006h' \
'--with-imap-ssl' \
"$@"

I have installed the client and development libraries. Any insight would be appreciated.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
    • ¥15 java写代码遇到问题,求帮助
    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
    • ¥15 关于#Java#的问题,如何解决?