[PHP] Re: compiling with mysql

2002-07-14 Thread David Robley

In article Pine.LNX.4.21.0207120957190.1434-
[EMAIL PROTECTED], [EMAIL PROTECTED] says...
 
 Another PHP compilation question ...
 
 I've just compiled PHP 4.2.1 --with-mysql. I added no path to mysql, and
 it worked fine as it always does. However, I'm keen to add mod_python as a
 DSO to Apache as well, and noticed in PHP's INSTALL notes that I'll
 probably need to recompile PHP with a path to mysql:
 
   --with-mysql=/somewhere/or/other/
 
 1. Is this always the case?
 
 2. Where would the path be likely to be on RedHat 7.2 with MySQL rpms?

I'm not a Redhat user, but I think you will have to have installed a 
source rpm for mysql. You can probably check if you have the include files 
installed by doing locate mysql.h to give you the mysql include directory, 
possibly something like /var/mysql/include or /usr/local/mysql/include. 
Stripping the /include should give you the 'parent' directory under which 
both the include files and lib files can be found.

Cheers
-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: compiling with mysql

2002-07-11 Thread terry chay

In [EMAIL PROTECTED] 
Michael Hall wrote:

 Another PHP compilation question ...
 
 I've just compiled PHP 4.2.1 --with-mysql. I added no path to mysql,
   --with-mysql=/somewhere/or/other/
 
 1. Is this always the case?

I though the documentation stated that all path variables need to be 
specified if it is outside your path. In any case I think even --with-
mysql may be optional nowadays (Isn't mysql compiled in by default). It 
is most likely should be set to /usr (RPM'd binaries) or /usr/local (
MySQL compiled from tarball)

 2. Where would the path be likely to be on RedHat 7.2 with MySQL rpms?

The easiest way to find this out is to check a RedHat phpinfo.php 
installation, you'd see that it is compiled as --with-mysql=shared,/usr. 
The shared part just meands that MySQL will be a dynamically loadable 
php extension instead of compiled in.

Hope this helps,

terry

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php