PHP 5.2.12
OS X 10.5.8
如果我使用以下配置命令从源代码编译 PHP
./configure --disable-all --with-openssl=shared,/opt/local
它成功了。但是,在make
and之后make install
,
php -m
没有列出 openssl 模块。
根据我所阅读的内容,我认为这可能是由于多次安装了 openssl 库。从源代码安装最新版本的 openssl 并尝试在 configure 命令中指定路径--with-openssl=/usr/local
,总是会导致以下错误:
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: *** [sapi/cgi/php-cgi] Error 1
我在路径上尝试了一些不同的变化,但没有运气。
基于 http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/,我还尝试编辑 Makefile 以便 MH_BUNDLE_FLAGS 在编译行的后面出现.
在这个问题上花了一天的大部分时间后,我不知所措。
有什么建议么?
理想情况下,我想使用已编译的最新版本的 OpenSSL。但在这一点上,我愿意接受任何可行的方法。