我的 macos 很大 尝试安装openssl
brew install openssl
警告:安装后步骤未成功完成
您可以再试一次:
brew postinstall openssl@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>'
答案 0 :(得分:0)
大苏尔用户
这是因为 MACOS 禁用了这个系统调用 您可以在终端中测试以下命令的第一种类型
csrutil status
默认情况下它是启用的 你可以按照这个视频关闭它
https://www.youtube.com/watch?v=pekCPQn5fMs
关闭后再次检查您可以看到
System Integrity Protection status: disabled.
问题应该得到解决