Mac OS phpize后编译openssl时执行 sudo ./configure --with-openssl --with-php-config=/usr/local/php5631/bin/php-config 报错: checking for CRYPTO_free in -lcrypto... no configure: error: libcrypto not found!
解决方法:
指定openssl的安装路径
通过./configure --help|grep with-openssl知道要指定路径
--with-openssl=DIR Include OpenSSL support (requires OpenSSL >= 0.9.6)
sudo ./configure --with-openssl=/usr/local/Cellar/openssl/1.0.2l/ --with-php-config=/usr/local/php5631/bin/php-config
这样就可以解决了
转载请注明:MitNick » Mac OS 编译openssl时报错:configure: error: libcrypto not found!