MAC OS BIG SUR自制程序无法安装openssl



我的macos很大尝试安装openssl

brew install openssl

警告:安装后步骤未成功完成

您可以使用重试

brew postinstallopenssl@1.1

==> An exception occurred within a child process:
Errno::EINTR: Interrupted system call @ apply2files - /private/tmp/20210702-73435-1yeffpb
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tempfile.rb:207:in `unlink'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tempfile.rb:207:in `unlink'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tempfile.rb:162:in `close'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tempfile.rb:168:in `close!'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl@1.1.rb:156:in `macos_post_install'
/usr/local/Homebrew/Library/Homebrew/extend/os/mac/on_os.rb:8:in `on_macos'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl@1.1.rb:115:in `post_install'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1101:in `block (2 levels) in run_post_install'
/usr/local/Homebrew/Library/Homebrew/formula.rb:924:in `with_logging'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1100:in `block in run_post_install'
/usr/local/Homebrew/Library/Homebrew/utils.rb:550:in `with_env'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1089:in `run_post_install'
/usr/local/Homebrew/Library/Homebrew/postinstall.rb:22:in `<main>'

对于大苏尔用户

这是因为MACOS禁用了此系统调用您可以在终端中测试以下命令的第一种类型

csrutil status

默认情况下,它处于启用状态你可以按照这个视频关闭它

https://www.youtube.com/watch?v=pekCPQn5fMs

再次关闭检查后,你可以看到

System Integrity Protection status: disabled.

应该解决这个问题

最新更新