Professional Web Applications Themes

#40471 [NEW]: PHP 5.2.1 failed to be compiled with MySQl 5.0.33, MySQL 5.0.27, MySQL 5.1.15 - PHP Bugs

From: pcdinh at gmail dot com Operating system: CentOS 4.4 PHP version: 5.2.1 PHP Bug Type: Compile Failure Bug description: PHP 5.2.1 failed to be compiled with MySQl 5.0.33, MySQL 5.0.27, MySQL 5.1.15 Description: ------------ I can not configure to build PHP 5.2.1 with MySQL 5 on CentOS 4.4. PHP can not find mysql_config that really exists. User account used to build: root Reproduce code: --------------- MySQL (5.0.27/5.0.33/5.1.15) builds: ../configure --prefix=/usr/local/mysql \ --localstatedir=/usr/local/mysql/data \ --libexecdir=/usr/local/mysql/bin \ --libdir=/usr/local/mysql/lib \ --with-server-suffix=-max \ --enable-thread-safe-client \ --enable-local-infile \ --enable-shared \ --enable-assembler \ --with-vio \ --with-libwrap \ --with-zlib-dir=bundled \ --with-big-tables \ --with-readline \ --with-archive-storage-engine \ ...

  1. #1

    Default #40471 [NEW]: PHP 5.2.1 failed to be compiled with MySQl 5.0.33, MySQL 5.0.27, MySQL 5.1.15

    From: pcdinh at gmail dot com
    Operating system: CentOS 4.4
    PHP version: 5.2.1
    PHP Bug Type: Compile Failure
    Bug description: PHP 5.2.1 failed to be compiled with MySQl 5.0.33, MySQL 5.0.27, MySQL 5.1.15

    Description:
    ------------
    I can not configure to build PHP 5.2.1 with MySQL 5 on CentOS 4.4. PHP can
    not find mysql_config that really exists.

    User account used to build: root

    Reproduce code:
    ---------------
    MySQL (5.0.27/5.0.33/5.1.15) builds:

    ../configure --prefix=/usr/local/mysql \
    --localstatedir=/usr/local/mysql/data \
    --libexecdir=/usr/local/mysql/bin \
    --libdir=/usr/local/mysql/lib \
    --with-server-suffix=-max \
    --enable-thread-safe-client \
    --enable-local-infile \
    --enable-shared \
    --enable-assembler \
    --with-vio \
    --with-libwrap \
    --with-zlib-dir=bundled \
    --with-big-tables \
    --with-readline \
    --with-archive-storage-engine \
    --with-innodb \
    --with-blackhole-storage-engine \
    --with-csv-storage-engine \
    --with-federated-storage-engine \
    --without-embedded-server \
    --without-berkeley-db \
    --with-ndbcluster \
    --with-ndb-docs \
    --with-partition \
    --without-docs \
    --without-bench \
    --with-cht=utf8 \
    --with-collation=utf8_general_ci \
    --with-extra-chts=all \
    --with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock \
    --with-client-ldflags=-all-static \
    --with-mysqld-ldflags=-all-static \
    --with-mysqld-user=mysql

    Built successfully and MySQL running


    PHP built:

    ../configure --prefix=/usr/local/php \
    --disable-cgi \
    --with-mysql=/usr/local/mysql \
    --with-mysqli=/usr/local/mysql/bin/mysql_config \
    --with-libxml-dir=/usr/local/lib \
    --with-apxs2=/usr/local/apache2/bin/apxs \
    --with-curl \
    --with-curlwrappers \
    --with-pdo-mysql \
    --with-pdo-oci=instantclient,/usr/local/instantclient_10_2,10.2.0.3 \
    --with-pdo-sqlite \
    --with-oci8=instantclient,/usr/local/instantclient_10_2 \
    --with-iconv \
    --with-gd \
    --with-png-dir=/usr/lib \
    --with-jpeg-dir=/usr/lib \
    --with-ttf \
    --with-freetype-dir=/usr/include/freetype2 \
    --with-dom=shared \
    --with-dom-xslt=shared \
    --with-dom-exslt=shared \
    --with-xpm-dir \
    --with-openssl \
    --with-xml \
    --with-zlib \
    --with-bz2 \
    --with-xmlrpc \
    --with-mcrypt \
    --with-tidy \
    --with-mime-magic \
    --without-pear \
    --enable-dom \
    --enable-png \
    --enable-jpeg \
    --enable-track-vars \
    --enable-memory-limit \
    --enable-memcache \
    --enable-calendar \
    --enable-sysvsem \
    --enable-sysvshm \
    --enable-bcmath \
    --enable-ctype \
    --enable-exif \
    --enable-ftp \
    --enable-sockets \
    --enable-shmop \
    --enable-wddx \
    --enable-gd-native-ttf \
    --enable-mbstring \
    --enable-path-info \
    --enable-inline-optimization \
    --enable-debug=no \
    --enable-mbregex \
    --disable-magic-quotes \
    --enable-zip \
    --enable-spl \
    --enable-libxml \
    --enable-simplexml \
    --enable-soap \
    --enable-sigchild \
    --disable-static

    Error:

    checking for MySQL support for PDO... yes
    checking for mysql_config... not found
    configure: error: Cannot find MySQL header files under

    Screenshot:

    [url]http://www.flickr.com/photos/pcdinh/389717146/[/url]

    Config log:
    [url]http://download.yousendit.com/63F59D0C1AA53E21[/url]

    Expected result:
    ----------------
    Be configured successfully.

    mysql_config really exists. I have configured MySQL build with
    --libexecdir=/usr/local/mysql/bin and have set /usr/local/mysql/bin into
    the PATH variable



    Actual result:
    --------------
    Failed to build

    --
    Edit bug report at [url]http://bugs.php.net/?id=40471&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40471&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40471&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40471&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40471&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40471&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40471&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40471&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40471&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40471&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40471&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40471&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40471&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40471&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40471&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40471&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40471&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40471&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40471&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40471&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40471&r=mysqlcfg[/url]
    pcdinh at gmail dot com Guest

  2. #2

    Default #40471 [Opn]: PHP 5.2.1 failed to be compiled with MySQl 5.0.33, MySQL 5.0.27, MySQL 5.1.15

    ID: 40471
    User updated by: pcdinh at gmail dot com
    Reported By: pcdinh at gmail dot com
    Status: Open
    Bug Type: Compile Failure
    Operating System: CentOS 4.4
    PHP Version: 5.2.1
    New Comment:

    Hi,

    I just found out why PHP 5.2.1 final refused to build

    + PHP 5.2.1 Rc4 does not require me to specify --with-pdo-mysql with
    MySQL path
    + But PHP 5.2.1 final requires it

    So I need to add --with-pdo-mysql=/usr/local/mysql


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-14 02:49:29] pcdinh at gmail dot com

    Description:
    ------------
    I can not configure to build PHP 5.2.1 with MySQL 5 on CentOS 4.4. PHP
    can not find mysql_config that really exists.

    User account used to build: root

    Reproduce code:
    ---------------
    MySQL (5.0.27/5.0.33/5.1.15) builds:

    ../configure --prefix=/usr/local/mysql \
    --localstatedir=/usr/local/mysql/data \
    --libexecdir=/usr/local/mysql/bin \
    --libdir=/usr/local/mysql/lib \
    --with-server-suffix=-max \
    --enable-thread-safe-client \
    --enable-local-infile \
    --enable-shared \
    --enable-assembler \
    --with-vio \
    --with-libwrap \
    --with-zlib-dir=bundled \
    --with-big-tables \
    --with-readline \
    --with-archive-storage-engine \
    --with-innodb \
    --with-blackhole-storage-engine \
    --with-csv-storage-engine \
    --with-federated-storage-engine \
    --without-embedded-server \
    --without-berkeley-db \
    --with-ndbcluster \
    --with-ndb-docs \
    --with-partition \
    --without-docs \
    --without-bench \
    --with-cht=utf8 \
    --with-collation=utf8_general_ci \
    --with-extra-chts=all \
    --with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock \
    --with-client-ldflags=-all-static \
    --with-mysqld-ldflags=-all-static \
    --with-mysqld-user=mysql

    Built successfully and MySQL running


    PHP built:

    ../configure --prefix=/usr/local/php \
    --disable-cgi \
    --with-mysql=/usr/local/mysql \
    --with-mysqli=/usr/local/mysql/bin/mysql_config \
    --with-libxml-dir=/usr/local/lib \
    --with-apxs2=/usr/local/apache2/bin/apxs \
    --with-curl \
    --with-curlwrappers \
    --with-pdo-mysql \
    --with-pdo-oci=instantclient,/usr/local/instantclient_10_2,10.2.0.3 \
    --with-pdo-sqlite \
    --with-oci8=instantclient,/usr/local/instantclient_10_2 \
    --with-iconv \
    --with-gd \
    --with-png-dir=/usr/lib \
    --with-jpeg-dir=/usr/lib \
    --with-ttf \
    --with-freetype-dir=/usr/include/freetype2 \
    --with-dom=shared \
    --with-dom-xslt=shared \
    --with-dom-exslt=shared \
    --with-xpm-dir \
    --with-openssl \
    --with-xml \
    --with-zlib \
    --with-bz2 \
    --with-xmlrpc \
    --with-mcrypt \
    --with-tidy \
    --with-mime-magic \
    --without-pear \
    --enable-dom \
    --enable-png \
    --enable-jpeg \
    --enable-track-vars \
    --enable-memory-limit \
    --enable-memcache \
    --enable-calendar \
    --enable-sysvsem \
    --enable-sysvshm \
    --enable-bcmath \
    --enable-ctype \
    --enable-exif \
    --enable-ftp \
    --enable-sockets \
    --enable-shmop \
    --enable-wddx \
    --enable-gd-native-ttf \
    --enable-mbstring \
    --enable-path-info \
    --enable-inline-optimization \
    --enable-debug=no \
    --enable-mbregex \
    --disable-magic-quotes \
    --enable-zip \
    --enable-spl \
    --enable-libxml \
    --enable-simplexml \
    --enable-soap \
    --enable-sigchild \
    --disable-static

    Error:

    checking for MySQL support for PDO... yes
    checking for mysql_config... not found
    configure: error: Cannot find MySQL header files under

    Screenshot:

    [url]http://www.flickr.com/photos/pcdinh/389717146/[/url]

    Config log:
    [url]http://download.yousendit.com/63F59D0C1AA53E21[/url]

    Expected result:
    ----------------
    Be configured successfully.

    mysql_config really exists. I have configured MySQL build with
    --libexecdir=/usr/local/mysql/bin and have set /usr/local/mysql/bin
    into the PATH variable



    Actual result:
    --------------
    Failed to build


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40471&edit=1[/url]
    pcdinh at gmail dot com Guest

  3. #3

    Default #40471 [Opn->Bgs]: PHP 5.2.1 failed to be compiled with MySQl 5.0.33, MySQL 5.0.27, MySQL 5.1.15

    ID: 40471
    Updated by: [email]tony2001php.net[/email]
    Reported By: pcdinh at gmail dot com
    -Status: Open
    +Status: Bogus
    Bug Type: Compile Failure
    Operating System: CentOS 4.4
    PHP Version: 5.2.1
    New Comment:

    Sorry, but your problem does not imply a bug in PHP itself. For a
    list of more appropriate places to ask for help using PHP, please
    visit [url]http://www.php.net/support.php[/url] as this bug system is not the
    appropriate forum for asking support questions. Due to the volume
    of reports we can not explain in detail here why your report is not
    a bug. The support channels will be able to provide an explanation
    for you.

    Thank you for your interest in PHP.




    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-14 03:40:44] pcdinh at gmail dot com

    Hi,

    I just found out why PHP 5.2.1 final refused to build

    + PHP 5.2.1 Rc4 does not require me to specify --with-pdo-mysql with
    MySQL path
    + But PHP 5.2.1 final requires it

    So I need to add --with-pdo-mysql=/usr/local/mysql

    ------------------------------------------------------------------------

    [2007-02-14 02:49:29] pcdinh at gmail dot com

    Description:
    ------------
    I can not configure to build PHP 5.2.1 with MySQL 5 on CentOS 4.4. PHP
    can not find mysql_config that really exists.

    User account used to build: root

    Reproduce code:
    ---------------
    MySQL (5.0.27/5.0.33/5.1.15) builds:

    ../configure --prefix=/usr/local/mysql \
    --localstatedir=/usr/local/mysql/data \
    --libexecdir=/usr/local/mysql/bin \
    --libdir=/usr/local/mysql/lib \
    --with-server-suffix=-max \
    --enable-thread-safe-client \
    --enable-local-infile \
    --enable-shared \
    --enable-assembler \
    --with-vio \
    --with-libwrap \
    --with-zlib-dir=bundled \
    --with-big-tables \
    --with-readline \
    --with-archive-storage-engine \
    --with-innodb \
    --with-blackhole-storage-engine \
    --with-csv-storage-engine \
    --with-federated-storage-engine \
    --without-embedded-server \
    --without-berkeley-db \
    --with-ndbcluster \
    --with-ndb-docs \
    --with-partition \
    --without-docs \
    --without-bench \
    --with-cht=utf8 \
    --with-collation=utf8_general_ci \
    --with-extra-chts=all \
    --with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock \
    --with-client-ldflags=-all-static \
    --with-mysqld-ldflags=-all-static \
    --with-mysqld-user=mysql

    Built successfully and MySQL running


    PHP built:

    ../configure --prefix=/usr/local/php \
    --disable-cgi \
    --with-mysql=/usr/local/mysql \
    --with-mysqli=/usr/local/mysql/bin/mysql_config \
    --with-libxml-dir=/usr/local/lib \
    --with-apxs2=/usr/local/apache2/bin/apxs \
    --with-curl \
    --with-curlwrappers \
    --with-pdo-mysql \
    --with-pdo-oci=instantclient,/usr/local/instantclient_10_2,10.2.0.3 \
    --with-pdo-sqlite \
    --with-oci8=instantclient,/usr/local/instantclient_10_2 \
    --with-iconv \
    --with-gd \
    --with-png-dir=/usr/lib \
    --with-jpeg-dir=/usr/lib \
    --with-ttf \
    --with-freetype-dir=/usr/include/freetype2 \
    --with-dom=shared \
    --with-dom-xslt=shared \
    --with-dom-exslt=shared \
    --with-xpm-dir \
    --with-openssl \
    --with-xml \
    --with-zlib \
    --with-bz2 \
    --with-xmlrpc \
    --with-mcrypt \
    --with-tidy \
    --with-mime-magic \
    --without-pear \
    --enable-dom \
    --enable-png \
    --enable-jpeg \
    --enable-track-vars \
    --enable-memory-limit \
    --enable-memcache \
    --enable-calendar \
    --enable-sysvsem \
    --enable-sysvshm \
    --enable-bcmath \
    --enable-ctype \
    --enable-exif \
    --enable-ftp \
    --enable-sockets \
    --enable-shmop \
    --enable-wddx \
    --enable-gd-native-ttf \
    --enable-mbstring \
    --enable-path-info \
    --enable-inline-optimization \
    --enable-debug=no \
    --enable-mbregex \
    --disable-magic-quotes \
    --enable-zip \
    --enable-spl \
    --enable-libxml \
    --enable-simplexml \
    --enable-soap \
    --enable-sigchild \
    --disable-static

    Error:

    checking for MySQL support for PDO... yes
    checking for mysql_config... not found
    configure: error: Cannot find MySQL header files under

    Screenshot:

    [url]http://www.flickr.com/photos/pcdinh/389717146/[/url]

    Config log:
    [url]http://download.yousendit.com/63F59D0C1AA53E21[/url]

    Expected result:
    ----------------
    Be configured successfully.

    mysql_config really exists. I have configured MySQL build with
    --libexecdir=/usr/local/mysql/bin and have set /usr/local/mysql/bin
    into the PATH variable



    Actual result:
    --------------
    Failed to build


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40471&edit=1[/url]
    tony2001@php.net Guest

Similar Threads

  1. Replies: 1
    Last Post: January 23rd, 12:06 PM
  2. #39369 [NEW]: PHP 5.2.0 will not compiled with MySQL support
    By nathan at officelink dot net dot au in forum PHP Bugs
    Replies: 5
    Last Post: November 4th, 10:26 AM
  3. Replies: 0
    Last Post: January 29th, 02:03 PM
  4. Replies: 1
    Last Post: January 27th, 02:49 AM
  5. Replies: 0
    Last Post: January 24th, 10:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139