Re: Cannot compile php and mysql together, looked around quite a while
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Cannot compile php and mysql together, looked around quite a while

From: Andy Hassall <andy@andyh.co.uk>
Date: Sun Dec 18 2005 - 17:03:27 CET

On 18 Dec 2005 07:30:08 -0800, gooderthanyou@gmail.com wrote:

>configure: error: Cannot find MySQL header files under usr/local/mysql.
>Note that the MySQL client library is not bundled anymore!

 That's a relative path.

>I gunzipped mysql, did tar -xvf to the resulting tar, moved the mysql
>folder to usr/local/... and I been able to log into mysql and all that
>good stuff so I guess its installed. just when I try to configure php
>with mysql it gives me that error when trying to fetch mysql!!

 That was using the binary distribution of MySQL presumably?
 Where did you move it to - "usr/local" is a relative path, but relative to
where? Did you in fact move it to the expected "/usr/local" directory?

>inside my php-5.1.1 folder I typed this from tutorials
>
>./configure --with-apxs2=/usr/local/apache2/bin/apxs
>--with-mysql=usr/local/mysql

 Relative path again, you most likely want --with-mysql=/usr/local/mysql

-- 
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Received on Fri Dec 23 20:14:45 2005