For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > August 2007 > Re: [PHP-INSTALL] Help compiling PHP 5.2.3 on OS X









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-INSTALL] Help compiling PHP 5.2.3 on OS X
John N

2007-08-24, 7:03 pm

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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com