Sc0uT
Verified User
Hi,
I'm trying to build PHP 4.4.4 on CentOS 4.4 x64 machine, and it always breaks at MySQL part of the PHP cunfigure.
My configure.php is:
I used MySQL rpms from http://files.directadmin.com/services/4.1_64/ (tried both MySQL 5.0.19 and 5.0.22, but both fail).
I tried entering --with-mysql=/usr/lib64 \ instead of --with-mysql=/usr \ in configure.php but then I'm getting an error that mysql header files can't be found.
Any ideas how to get PHP compiled with MySQL support on this machine?
I'm trying to build PHP 4.4.4 on CentOS 4.4 x64 machine, and it always breaks at MySQL part of the PHP cunfigure.
Code:
checking base type of last arg to accept... socklen_t
checking return type of qsort... void
configure: error: Cannot find libmysqlclient library under /usr
My configure.php is:
Code:
#!/bin/sh
./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--with-openssl \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit
I used MySQL rpms from http://files.directadmin.com/services/4.1_64/ (tried both MySQL 5.0.19 and 5.0.22, but both fail).
I tried entering --with-mysql=/usr/lib64 \ instead of --with-mysql=/usr \ in configure.php but then I'm getting an error that mysql header files can't be found.
Any ideas how to get PHP compiled with MySQL support on this machine?