notes icon indicating copy to clipboard operation
notes copied to clipboard

PHP MongoDB 扩展 OpenSSL 问题 or php mongodb extension openssl error

Open lanlin opened this issue 8 years ago • 1 comments

有的时候,有的系统 (OSX),有点装13。 比如,它就开始瞧不起 OpenSSL 了...

你一通折腾升级成功了,变成了 [email protected] 了。 然后 pecl install mongodb 扩展,然后报错了...

configure: error: Cannot find OpenSSL's xxxx

步骤:

pecl download mongodb
tar zxvf mongodb*.tgz
cd mongodb*
phpize
./configure --with-openssl-dir=/usr/local/opt/openssl
make
sudo make install

注意:

./configure --with-openssl-dir=/usr/local/opt/openssl
./configure --with-openssl-dir=/usr/local/opt/[email protected]

我一开始用第二行的版本 1.1,然后 bus error xxxx mongodb 扩展版本为 1.2.6,看来 mongodb 这边也慢吞吞的。 只有先用 openssl 1.0.X 的

曰:

你大爷,始终是你大爷。

lanlin avatar Mar 09 '17 12:03 lanlin

https://github.com/lanlin/notes/issues/72

lanlin avatar May 14 '19 11:05 lanlin