Hello!
I want to compile PHP-5.0.1 with MySQL. Have allready compiled and installed Apache 2.50 (in /usr/local/Apache2) and MySQL 4.20 (in /usr/local/mysql-standard-4.0.20-pc-linux-i686). Now when I want to compile PHP5 I'll use:
./configure --with-apxs2=/usr/local/Apache2/bin/apxs --with-mysql
but I get this error:
Code:
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /tmp/mysql.sock
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore.
If I give --with-mysql the directory it won't work too:
./configure --with-apxs2=/usr/local/Apache2/bin/apxs --with-mysql-dir=/usr/local/mysql-standard-4.0.20-pc-linux-i686
Then I get this:
Code:
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... no
checking whether to enable embedded MySQLi support... no
.............
Generating files
updating cache ./config.cache
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/php-config
creating sapi/cli/php.1
creating main/php_config.h
main/php_config.h is unchanged
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
Thank you for using PHP.
What should I do to have PHP5 succesfully compiled with MySQL?
Thank you!
Boby