我正在尝试在我的(M1)Mac OS 11.5.2上安装gdb命令,但我得到了brew错误“gdb:没有可用的瓶子!”
我使用brew install gdb
这里是输出:
Error: gdb: no bottle available!
You can try to install from source with:
brew install --build-from-source gdb
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
我尝试使用brew install --build-from-source gdb
这里是输出结果:
==> Downloading https://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.xz
Already downloaded: /Users/XX/Library/Caches/Homebrew/downloads/3b9f42b326145a6a827e12965049f662e7fa6b9687d9263219c87418d4f8835d--gdb-10.2.tar.xz
==> ../configure --enable-targets=all --prefix=/opt/homebrew/Cellar/gdb/10.2 --disable-debug --disable-dependency-tracking --with-lzma --w
==> make
==> make install-gdb maybe-install-gdbserver
Error: Empty installation
这是我的 brew config
输出:
HOMEBREW_VERSION: 3.2.8
ORIGIN: https://mirrors.ustc.edu.cn/brew.git
HEAD: f026dd21c195952747395ebdda24327204f012ec
Last commit: 5 days ago
Core tap ORIGIN: https://mirrors.ustc.edu.cn/homebrew-core.git
Core tap HEAD: d91b62c128523ef6fb6dcf7b227071a8a2b561c0
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 12.0.5 build 1205
Git: 2.30.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.5.2-arm64
CLT: 12.5.1.0.1.1623191612
Xcode: N/A
Rosetta 2: false
我不知道如何解决它。如果您知道答案,请帮助我。