compiling php5.4 on macosx 10.6.8

Posted by ling on Server Fault See other posts from Server Fault or by ling
Published on 2012-09-29T13:17:12Z Indexed on 2012/09/29 15:41 UTC
Read the original article Hit count: 311

Filed under:
|

I'm trying to compile php 5.4.7 on mac osx 10.6.8.

I could install it using the default procedure:

./configure \ --prefix=/usr/local \ --with-config-file-path=/usr/local/etc \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql

sudo make clean sudo make sudo make install

But now if I try to install to compile php with the curl module it fails:

./configure \ --prefix=/usr/local \ --with-config-file-path=/usr/local/etc \ --with-curl=/usr \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql

sudo make clean sudo make

=> last lines of make output:

Undefined symbols: "_CRYPTO_set_locking_callback", referenced from: _zm_shutdown_curl in interface.o _zm_startup_curl in interface.o "_CRYPTO_num_locks", referenced from: _zm_shutdown_curl in interface.o _zm_startup_curl in interface.o "_CRYPTO_get_id_callback", referenced from: _zm_startup_curl in interface.o "_CRYPTO_set_id_callback", referenced from: _zm_shutdown_curl in interface.o _zm_startup_curl in interface.o ld: symbol(s) not found collect2: ld returned 1 exit status make: * [libs/libphp5.bundle] Error 1

I read somewhere ( http://user.xmission.com/~georgeps/documentation/tutorials/compilation_and_makefiles.html ) that in this case, I should tell the compiler where to find the missing library, so that it can links the missing files.

The problem is that I don't what library I should look for, is it libssl2 ?

© Server Fault or respective owner

Related posts about macosx

Related posts about php5