#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 | Date: | Wed, 14 Feb 2007 02:49:29 +0000 |
| Subject: | #40471 [NEW]: PHP 5.2.1 failed to be compiled with MySQl 5.0.33, MySQL 5.0.27, MySQL 5.1.15 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-108832@lists.php.net to get a copy of this message | ||
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-charset=utf8 \
--with-collation=utf8_general_ci \
--with-extra-charsets=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:
http://www.flickr.com/photos/pcdinh/389717146/
Config log:
http://download.yousendit.com/63F59D0C1AA53E21
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 http://bugs.php.net/?id=40471&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40471&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40471&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40471&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40471&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40471&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40471&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40471&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40471&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40471&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40471&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40471&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40471&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40471&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40471&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40471&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40471&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40471&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40471&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40471&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40471&r=mysqlcfg