I'm trying to install gdb command on my (M1) Mac OS 11.5.2, but I got brew error "gdb: no bottle available!"
I use brew install gdb here's the output:
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.
I try to use brew install --build-from-source gdb here's the output:
==> 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
Here's my brew config output:
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
I don't know how to slove it. Please help me if you know the answer.