Re: Help compiling PHP 5.2.3 on OS X
| From: | John N | Date: | Fri, 24 Aug 2007 17:20:02 +0000 |
| Subject: | Re: Help compiling PHP 5.2.3 on OS X | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-18218@lists.php.net to get a copy of this message | ||
Since it seems with your configure,
./configure --with-apxs2=/app/apache2/bin/apxs --without-pear --
with-config-file-path=/app/ini --with-mysql=/usr/local/mysql
that you're not building only for mysql extension and not for
PDO/mysql, you will see in your config.log,
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
Referenced from: /Users/jpons/app/src/php-5.2.3/./conftest
Reason: image not found
Add before your configure step,
setenv LDFLAGS "-bind_at_load -L/usr/local/mysql/lib/mysql -lmysqlclient"
setenv CPPFLAGS "-I/usr/local/mysql/include/mysql"
And try it again.