The problem seems to be with the paths of the OSX MySQL installation
and the paths that the PHP MySQL libraries are looking for.
Under OSX the MySQL libs are installed in /usr/local/mysql/lib
however the PHP MySQL module expects the MySQL shared libraries at /
usr/local/mysql/lib/mysql
What I was able to to do to get around this issue is create a set of
symlinks:
cd /usr/local/mysql/lib
ln -s /usr/local/mysql/lib ./mysql
cd /usr/local/mysql/include
ln -s /usr/local/mysql/include ./mysql
And this seems to do the trick.
I have filed a php bug on this issue:
http://bugs.php.net/?id=42464
Hope this helps someone else.
-J
---
Juan A. Pons
juan.at.pons.org
On Aug 24, 2007, at 12:53 PM, Juan A. Pons wrote:
Hello,
I am having a problem compiling apache 2.2.4 with PHP 5.2.3 and
mysql 5.0.45 on OS x 10.4.10
In trying to track down where the problem lies I was trying to take
as many variables out of the equation as I could and I found out
where the problem likely lies. And what I found out is that the
problem seems to lie with buildconf (I think).
Here is the issue:
I can compile php using the following configure line just as soon
as I extract the php tarball
./configure --with-apxs2=/app/apache2/bin/apxs --without-pear --
with-config-file-path=/app/ini --with-mysql=/usr/local/mysql
However as soon as I delete configure and run buildconf I can't get
php to compile.
You could easily tell me not to delete the configure script and run
autoconf, but unfortunately I need to do so in order to compile
some php extensions.
Any help here would be GREATLY appreciated.
Here is the transcript
$ tar -zxvf php-5.2.3.tar.gz
$ cd php-5.2.3
$ rm configure
$ ./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
Running cvsclean for you.
To avoid this, install autoconf-2.13.
rebuilding configure
aclocal.m4:2056: PHP_PROG_LEX is expanded from...
rebuilding main/php_config.h.in
autoheader: WARNING: Using auxiliary files such as `acconfig.h',
`config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for
`config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a
template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be
produced, see the
autoheader: WARNING: documentation.
aclocal.m4:2056: PHP_PROG_LEX is expanded from...
$ ./configure --with-apxs2=/app/apache2/bin/apxs --without-pear --
with-config-file-path=/app/ini --with-mysql=/usr/local/mysql
Lots and lots of checks and then this:
checking for sqlite 3 support for PDO... yes
checking for PDO includes... checking for PDO includes... /Users/
jpons/app/src/php-5.2.3/ext
checking for char *... yes
checking size of char *... configure: error: cannot compute sizeof
(char *), 77
See `config.log' for more details.
You can see config.log at this location:
http://wildnaturephoto.com/custom/php/config.log
and the configure script here:
http://wildnaturephoto.com/custom/php/configure
Any help would be GREATLY appreciated!
-J
---
Juan A. Pons
juan@xxxxxxxx
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]