Try installing mySQL from the binary source. I don't believe the header
files are included in the RPMS.
Joseph
> -----Original Message-----
> From: slug@nks.net [mailto:slug@nks.net] On Behalf Of
> gnorb@tampabay.rr.com
> Sent: Sunday, August 10, 2003 5:06 PM
> To: slug@nks.net
> Subject: [SLUG] MySQL & PHP
>
> 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 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:42 EDT