全部是源码包编译安装,原来没有加入mbstring,现在需要加,用与原来同样版本的php源码包,配置编译时报错
“mysql configure failed.”如能解决,不甚感激!(编译过程中没有停止任何服务,不知道和这个有没有关系)

解决方案 »

  1.   

    ·双线主机 100M/35元/年,免费送数据库(自选MY/MSSQL) 
    ·详情请访问:http://www.515dns.com 
      

  2.   

    源码包里有没有对应的 mbstring 的 对应该文件
      

  3.   

    如果去掉with-mysql选项,那么是能编译成功的。
    而且,报错是关于mysql的。。
    做过重编译的能不能说下,编译过程中需不需要停服务的?能不停最好,如果确定需要停,我就停下试试因为我这里不能随便停。。
      

  4.   


    php-5.2.0.tar.gz
    解压缩。
    ./configure --with-mysql="/usr/local/mysql" ....................报错
    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_error in -lmysqlclient... no
    configure: error: mysql configure failed. Please check config.log for more information.
      

  5.   

    为什么我先执行
    './configure' '--prefix=/usr/local/php5' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'编译通过,再执行
    './configure' '--prefix=/usr/local/php5' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-xmlrpc' '--with-expat-dir=/usr/lib' '--enable-soap' '--with-gd=/usr/local/gd2/' '--with-jpeg-dir=/usr/local/jpeg6/' '--with-zlib-dir=/usr/local/lib/' '--with-png=/usr/local/lib/' '--with-freetype-dir=/usr/local/freetype/' '--with-libxml-dir=/usr/local/libxml2' '--enable-shmop' '--enable-mbstring'
    就没问题而如果直接解压缩源码包执行
    './configure' '--prefix=/usr/local/php5' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-xmlrpc' '--with-expat-dir=/usr/lib' '--enable-soap' '--with-gd=/usr/local/gd2/' '--with-jpeg-dir=/usr/local/jpeg6/' '--with-zlib-dir=/usr/local/lib/' '--with-png=/usr/local/lib/' '--with-freetype-dir=/usr/local/freetype/' '--with-libxml-dir=/usr/local/libxml2' '--enable-shmop' '--enable-mbstring'
    mysql那里就报错。
    并且,如果按照前一种方式编译通过,去安装的话会不会出现问题?