jin*_*xin 4 macos homebrew gdb
我尝试在我的 (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.
Run Code Online (Sandbox Code Playgroud)
我尝试使用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
Run Code Online (Sandbox Code Playgroud)
这是我的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
Run Code Online (Sandbox Code Playgroud)
我不知道如何解决它。如果您知道答案,请帮助我。
您只是无法构建gdb本机 arm64 包。不支持。
引用Homebrew 中的 Apple Silicon 支持
\n\n\n现在,我们的大部分配方奶粉均采用 Apple Silicon 进行瓶装:70%。然而,并非所有软件都已为 macOS 上的 ARM 处理器做好准备,而且由于我们发布了上游版本,因此有些公式需要很长时间才能修复,有一个新版本\xe2\x80\xa6,还有一些永远不会支持ARM。
\n我们的支持级别是这样的:Homebrew 致力于为支持 ARM 的软件提供 ARM 瓶。我们无法修复现有的所有软件,也不会接受像 \xe2\x80\x9c 公式 Z 不支持 ARM 你能修复它吗 \xe2\x80\x9d 这样的功能请求。帮助软件在 ARM 上运行的最有用方法是与软件开发人员一起提交错误报告。
\n
这就是 Homebrew 选择/opt/homebrewM1 Mac 而不是旧的/usr/local. 用户可能需要 Apple Silicon Homebrew(安装在/opt/homebrew)、Rosetta2 Homebrew(/usr/local)共存。
所以,如果你真的需要的话gdb。获取 Rosetta 2 Homebrew 安装并通过 Rosetta 2 进行安装。
| 归档时间: |
|
| 查看次数: |
5885 次 |
| 最近记录: |