安装PHP 5.6时出现OpenSSL错误<evp.h>

时间:2019-12-30 19:41:43

标签: macos openssl homebrew libressl

Heelo,我已经安装了phpbrew。 现在,当我尝试使用php@5.6安装phpbrew时,由于openssl存在问题,它失败了。 它显示此错误消息: configure: error: Cannot find OpenSSL's <evp.h>

我无法更新/替换系统openssl,它总是说“不允许操作”, Homebrew的命令失败。

有什么建议吗?

我在下面附上HomebrewOpenSSL信息。

volk ~ $ openssl version
LibreSSL 2.8.3

volk ~ $ brew info openssl
Error: openssl: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Aliases/openssl:1: syntax error, unexpected ..
../Formula/openssl@1.1.rb
^~
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Aliases/openssl:1: unknown regexp options - pl
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Aliases/openssl:1: `@1' is not allowed as an instance variable name

volk ~ $ brew config
HOMEBREW_VERSION: 2.2.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 13f508d0dc8ada1726ee09a750285d7447ac3df4
Last commit: 7 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a00e60918e749662f677d7dc257a978b9a653e8a
Core tap last commit: 29 minutes ago
HOMEBREW_PREFIX: /usr/local
CPU: 16-core 64-bit kabylake
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
Clang: 11.0 build 1100
Git: 2.24.1 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15.2-x86_64
CLT: 11.3.0.0.1.1574140115
Xcode: 11.3

0 个答案:

没有答案