Using MAMP is better than source compile PHP on Mac OS 10.5.8

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 1

I 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.

This entry was posted in Tweak. Bookmark the permalink. Trackbacks are closed, but you can post a comment.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">