一旦工作,那就要努力的干,聪明的干,快速的干——用省下来的时间干自己喜欢干的事情。!

Mac OS 编译openssl时报错:configure: error: libcrypto not found!

linux lampnick 9999℃ 0评论
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!

喜欢 (18)or分享 (0)
头像
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址