PHP5.2.10 couldn’t be compiled on Mac OS 10.5.8.
% ./configure --with-readline --with-mysql --with-pdo-mysql --enable-mbstring --with-openssl --with-curl --with-apxs2=/usr/local/apache2/bin/apxs
% make
Undefined symbols:
"_EVP_CIPHER_CTX_block_size", referenced from:
_zif_openssl_seal in openssl.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1I tried to compile openssl0.9.8j, then set –with-openssl=/usr/local/ssl, but the same error occurred.
–with-openssl=shared works fine. However, openssl.so doesn’t work.
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'openssl.so' in Unknown on line 0
PHP5.1.6 & ./configure –with-openssl=shared –without-iconv & openssl.so works well.
In short, MAMP1.7.2(PHP5.2.6 with openssl) is much easier than compiling from source code.
UPDATE:
MAMP1.8 includes PHP5.2.10 + openssl.