wget 在 MacOS Big Sur 11.1 (M1 Apple Silicon) 上崩溃

wget 在 MacOS Big Sur 11.1 (M1 Apple Silicon) 上崩溃

我从自制安装的 wget 版本和本地编译的版本获得了相同的结果。

运行 wget 时它会立即退出,退出代码为 137

bash$ wget --help
Killed: 9
zsh$ wget --help
[1]    81709 killed     wget --help

我怀疑内核中的某些东西正在使用 SIGKILL 立即终止该进程

我如何检查日志来了解发生了什么,或者进行其他诊断?

$ which wget
/opt/homebrew/bin/wget
$ brew info wget
wget: stable 1.20.3 (bottled), HEAD
Internet file retriever
https://www.gnu.org/software/wget/
/opt/homebrew/Cellar/wget/1.20.3_2 (50 files, 4.0MB) *
  Poured from bottle on 2021-01-06 at 23:39:41
From: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/wget.rb
License: GPL-3.0-or-later
==> Dependencies
Build: pkg-config ✔
Required: libidn2 ✔, [email protected]
==> Options
--HEAD
    Install HEAD version
==> Analytics
install: 126,729 (30 days), 315,648 (90 days), 1,235,170 (365 days)
install-on-request: 126,050 (30 days), 312,760 (90 days), 1,208,645 (365 days)
build-error: 0 (30 days)
$ file /opt/homebrew/bin/wget
/opt/homebrew/bin/wget: Mach-O 64-bit executable arm64

答案1

事实证明我的自制软件安装已“损坏”或处于半工作状态。完全卸载并重新安装自制软件后,wget 安装似乎运行正常。

相关内容