[SLUG] MySQL & PHP

From: gnorb@tampabay.rr.com
Date: Sun Aug 10 2003 - 17:06:26 EDT


Hey guys;

I've been trying to compile MySQL support to PHP (for user with Apache modules). Here are the steps I've been taking (system is Red Hat 9):

(1 - Installing MySQL)
rpm -ivh MySQL-server-4.0.14-0.i386.rpm
rpm -ivh MySQL-client-4.0.14-0.i386.rpm
(and so on for MySQL-bench, devel, embedded, shared, shared-compat, perl-DBI).

(2 - Installing Apache)
(in /usr/src/httpd-2.0.47)
./configure \
--prefix=/usr/local/apache2 \
--enable-module=so

make
make install
/usr/local/apache2/bin/apachectl start

(3 - Compiling PHP)
(in /usr/src/php-4.3.2)
./configure --prefix=/usr/local/php \
--with-mysql=<<herein lies the problem>>
--with-apxs2=/usr/local/apache2/bin/apxs

At this step, I get the following message if I DON'T use --with-mysql:
You chose to compile PHP with the built-in MySQL support. If you are compiling a server module, and intend to use other server modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, mod_perl) you must NOT rely on PHP's built-in MySQL support, and instead build it with your local MySQL support files, by adding --with-mysql=/path/to/mysql to your configure line.

If I do use --with-mysql=/path/to/mysql(*), then I get

configure: error: Cannot find header files under /path/to/mysql(*)

(*)where /path/to/mysql is:
/var/lib/mysql
/val/lib/mysql/mysql
/usr/bin
/usr/bin/mysql
/usr/lib/mysql
/usr/lib
/usr/share/mysql
/usr/include/mysql

Any tips on this?

TIA

Gnorb

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:23:16 EDT