簡體   English   中英

帶有 macOS Big Sur 11.2.1 的蘋果 m1 安裝軟件失敗,出現終止錯誤

[英]apple m1 with macOS Big Sur 11.2.1 install soft faild, with killed error

在此處輸入圖像描述

當 rbenv 安裝 ruby

generating arm64-darwin20-fake.rb
arm64-darwin20-fake.rb updated
./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems -r./arm64-darwin20-fake ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc" --rdoc-output=".ext/rdoc" --html-output=".ext/html"
make: *** [do-install-all] Killed: 9

當 pyenv 安裝 python

/bin/sh: line 1: 59082 Killed: 9               CC='clang' LDSHARED='clang -bundle -undefined dynamic_lookup -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/readline/lib -L/Users/lidashuang/.pyenv/versions/3.9.2/lib -L/opt/homebrew/opt/openssl@1.1/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/readline/lib -L/Users/lidashuang/.pyenv/versions/3.9.2/lib -L/opt/homebrew/opt/openssl@1.1/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib  ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python.exe -E ./setup.py $quiet build

當自制軟件安裝 python

subprocess.CalledProcessError: Command '['/opt/homebrew/opt/python@3.9/bin/python3.9', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/private/tmp/tmp7q_qlu62/setuptools-49.2.1-py3-none-any.whl\', \'/private/tmp/tmp7q_qlu62/pip-20.2.3-py2.py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/private/tmp/tmp7q_qlu62\', \'setuptools\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' died with <Signals.SIGKILL: 9>.

died with <Signals.SIGKILL: 9>.

系統日志

Feb 22 08:36:31 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis[78933]): Binary is improperly signed.
Feb 22 08:36:31 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:36:41 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql[80633]): Binary is improperly signed.
Feb 22 08:36:41 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:36:41 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis[80634]): Binary is improperly signed.
Feb 22 08:36:41 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:36:43 dashuangdeMacBook-Pro Google Chrome Helper[634]: Libnotify: notify_register_coalesced_registration failed with code 9 on line 2835
Feb 22 08:36:49 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0F000000-0500-0000-0000-000000000000[78921]): Service exited due to SIGKILL | sent by mds[98]
Feb 22 08:36:51 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis[82032]): Binary is improperly signed.
Feb 22 08:36:51 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:36:51 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql[82031]): Binary is improperly signed.
Feb 22 08:36:51 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:01 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql[83275]): Binary is improperly signed.
Feb 22 08:37:01 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:01 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis[83274]): Binary is improperly signed.
Feb 22 08:37:01 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:03 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0E000000-0200-0000-0000-000000000000[78506]): Service exited due to SIGKILL | sent by mds[98]
Feb 22 08:37:03 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0B000000-0100-0000-0000-000000000000[78918]): Service exited due to SIGKILL | sent by mds[98]
Feb 22 08:37:03 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (com.apple.mdworker.shared.10000000-0300-0000-0000-000000000000[78920]): Service exited due to SIGKILL | sent by mds[98]
Feb 22 08:37:03 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (com.apple.mdworker.shared.04000000-0500-0000-0000-000000000000[78919]): Service exited due to SIGKILL | sent by mds[98]
Feb 22 08:37:11 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (com.apple.mdworker.shared.03000000-0200-0000-0000-000000000000[78925]): Service exited due to SIGKILL | sent by mds[98]
Feb 22 08:37:11 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis[84978]): Binary is improperly signed.
Feb 22 08:37:11 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:11 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql[84977]): Binary is improperly signed.
Feb 22 08:37:11 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:21 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis[89274]): Binary is improperly signed.
Feb 22 08:37:21 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:21 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql[89286]): Binary is improperly signed.
Feb 22 08:37:21 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:31 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql[94316]): Binary is improperly signed.
Feb 22 08:37:31 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:31 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis[94315]): Binary is improperly signed.
Feb 22 08:37:31 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:31 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0F000000-0600-0000-0000-000000000000[81563]): Service exited due to SIGKILL | sent by mds[98]
Feb 22 08:37:32 dashuangdeMacBook-Pro systemstats[79]: assertion failed: 20D74: systemstats + 399948 [146262DC-951A-39E6-88F2-E8A328A3A263]: 0x0
Feb 22 08:37:32 dashuangdeMacBook-Pro systemstats[79]: assertion failed: 20D74: systemstats + 602280 [146262DC-951A-39E6-88F2-E8A328A3A263]: 0x2
Feb 22 08:37:41 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql[9177]): Binary is improperly signed.
Feb 22 08:37:41 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:41 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis[9178]): Binary is improperly signed.
Feb 22 08:37:41 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:43 dashuangdeMacBook-Pro Google Chrome Helper[634]: Libnotify: notify_register_coalesced_registration failed with code 9 on line 2835
Feb 22 08:37:51 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql[9181]): Binary is improperly signed.
Feb 22 08:37:51 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:51 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis[9182]): Binary is improperly signed.
Feb 22 08:37:51 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 22 08:37:53 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (com.apple.mdworker.shared.03000000-0600-0000-0000-000000000000[94450]): Service exited due to SIGKILL | sent by mds[98]

許多Service exited due to SIGKILL | sent by mds[98] Service exited due to SIGKILL | sent by mds[98]錯誤

問題是 Mac OS 本身的更新/升級。 Ruby 和 Python 很可能取決於已安裝在舊版 Mac OS 上的庫(例如 11.1.X)。 該更新打破了自制程序適用於例如可執行文件和庫的臨時簽名。

為了解決這個問題,我做了以下事情:

  1. 啟動Console應用程序並查看Crash Reports ,應該有一個嘗試啟動的應用程序條目。 例如 Python。
  2. 在條目中有以下提示:
Exception Type:        EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes:       0x0000000000000032, 0x0000000104ea8000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace CODESIGNING, Code 0x2

kernel messages:

VM Regions Near 0x104ea8000:
    __LINKEDIT                  104ea0000-104ea8000    [   32K] r--/rwx SM=COW  /opt/homebrew/*/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_hashlib.cpython-38-darwin.so
--> mapped file                 104ea8000-104eac000    [   16K] r--/r-x SM=PRV  Object_id=29cb6af3
    MALLOC_MEDIUM               140000000-140800000    [ 8192K] rw-/rwx SM=PRV  

Application Specific Information:
dyld: in dlopen()
/opt/homebrew/opt/openssl@1.1/lib/libssl.1.1.dylib
  1. 使用自制軟件重新安裝相關的 package,例如brew reinstall openssl或應用程序的每個依賴項
    您正在嘗試運行例如brew reinstall $(brew deps python)

我在帶有蘋果硅的新 M1 macbook air 上遇到了很多類似的問題:

“zsh: 殺死 git” “zsh: 殺死 python3” 等

git 問題已通過在 homebrew 下卸載/重新安裝 git 得到修復: brew reinstall git / brew update ZBAE9311ECFDCBBD16393

brew reinstall $(brew deps python) 在嘗試了其他所有方法后修復了我的 python3 問題(只是重新安裝 python 不起作用 - 所有部門都需要更新)...謝謝!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM