Trouble compiling in mysqli under PHP5 -- "mysql_config not found"
| From: | Weston C | Date: | Wed, 03 Jan 2007 01:23:33 +0000 |
| Subject: | Trouble compiling in mysqli under PHP5 -- "mysql_config not found" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-246400@lists.php.net to get a copy of this message | ||
I'm trying to build a CLI/CGI binary of PHP5 with MySQLi under Mac OS
X. When I invoke configure, I get the following error message:
"checking whether to enable embedded MySQLi support... no
mysql_config not found
configure: error: Please reinstall the mysql distribution"
Now, mysql (4.1.22) is in fact installed, and it looks to me like the
headers are in fact there (and mysql_config seems to be under ./bin),
and I did give it the path with the config option
(--with-mysqli=/usr/local/mysql -- yes, I know this isn't the
conventional Mac OS X path, but I like these things under /usr/local,
so....).
Curiously, I note that a build using --with-mysql=/usr/local/mysql
works just fine.
Any ideas what I'm doing wrong here?