error: Cannot find OpenSSL's <evp.h> Mac

问题

mac安装php需要openssl

./configure –with-openssl

报错 error: Cannot find OpenSSL’s

解决

brew install openssl
./configure  --with-openssl=/usr/local/Cellar/openssl/1.0.2l/




==

php52与56共存的。使用下面的

./configure --with-php-config=/usr/local/Cellar/php52bysk/bin/php-config  --with-openssl=/usr/local/Cellar/openssl/1.0.2l/
make
make install

猜你喜欢

转载自www.cnblogs.com/showker/p/9276856.html