简体   繁体   English

带有 macOS Big Sur 11.2.1 的苹果 m1 安装软件失败,出现终止错误

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

在此处输入图像描述

when rbenv install ruby当 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

when pyenv install python当 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

when homebrew install python当自制软件安装 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>.

system logs系统日志

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]

many 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] error Service exited due to SIGKILL | sent by mds[98]错误

The problem is an update/upgrade of Mac OS itself.问题是 Mac OS 本身的更新/升级。 Ruby and Python are most likely depending on an library which was already installed on an older version of Mac OS (like for eg 11.1.X). Ruby 和 Python 很可能取决于已安装在旧版 Mac OS 上的库(例如 11.1.X)。 The update breaks the ad-hoc signing which homebrew applies t for eg executables and libraries.该更新打破了自制程序适用于例如可执行文件和库的临时签名。

In order to solve this I did the following:为了解决这个问题,我做了以下事情:

  1. Launch the Console app and have a look in Crash Reports there should be an entry for the app which is tried to be launched.启动Console应用程序并查看Crash Reports ,应该有一个尝试启动的应用程序条目。 For eg Python.例如 Python。
  2. Within the entry there was the following hint:在条目中有以下提示:
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. Re-install the relevant package with homebrew like for eg brew reinstall openssl or every dependency of the app使用自制软件重新安装相关的 package,例如brew reinstall openssl或应用程序的每个依赖项
    you're trying to run by for eg brew reinstall $(brew deps python) .您正在尝试运行例如brew reinstall $(brew deps python)

I've had a lot of similar problems on a new M1 macbook air with apple silicon:我在带有苹果硅的新 M1 macbook air 上遇到了很多类似的问题:

"zsh: killed git" "zsh: killed python3" etc “zsh: 杀死 git” “zsh: 杀死 python3” 等

The git issue was fixed by uninstalling/reinstalling git under homebrew: brew reinstall git / brew update git. git 问题已通过在 homebrew 下卸载/重新安装 git 得到修复: brew reinstall git / brew update ZBAE9311ECFDCBBD16393

brew reinstall $(brew deps python) fixed my problems with python3 after trying everything else (just reinstalling python did not work - all deps needed to be updated)... Thank you! brew reinstall $(brew deps python) 在尝试了其他所有方法后修复了我的 python3 问题(只是重新安装 python 不起作用 - 所有部门都需要更新)...谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 带有运行 macOS Big Sur 的 Apple M1 芯片的 iMac 上的 miniconda 安装问题 - miniconda installation issue on iMac with Apple M1 chip running macOS Big Sur 无法在带有 M1 芯片的 MacOS Big Sur 上安装 pyenv 3.8.5? - Can't install pyenv 3.8.5 on MacOS Big Sur with M1 chip? 错误:命令“clang”失败,退出状态为 1:在 MacOS Big Sur M1 上安装 pandas - error: command 'clang' failed with exit status 1 : On installing pandas on MacOS Big Sur M1 无法在带有 Apple M1 芯片的 macOS 12.2.1 上安装 orjson 3.3.0 - Unable to install orjson 3.3.0 on macOS 12.2.1 with Apple M1 chip psycopg2 安装在运行 MacOS Big Sur 的 M1 上,但无法运行本地服务器 - psycopg2 installed on M1 running MacOS Big Sur, but unable to run local server MySQLClient 不会通过 pip 在最新版本的 Big Sur 的 Macbook Pro M1 上安装 - MySQLClient won't install via pip on Macbook Pro M1 with latest version of Big Sur 在 MacOs M1 中安装 Tensorflow - Install Tensorflow in MacOs M1 无法在 macOS Big Sur 上安装 pyarrow - Can't install pyarrow on macOS Big Sur 无法在 macOS Big Sur 上安装 Matplotlib - Can't install Matplotlib on macOS Big Sur 导入 pyaudio 不起作用 - 找不到符号:Mac 上的 _PaMacCore_SetupChannelMap(Big Sur M1 Apple Silicon) - Import pyaudio doesn't work - Symbol not found: _PaMacCore_SetupChannelMap on mac (Big Sur M1 Apple Silicon)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM