Mac OS X v10.7 (Lion) 上的 Gdb [英] Gdb on Mac OS X v10.7 (Lion)
本文介绍了Mac OS X v10.7 (Lion) 上的 Gdb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是新的 Mac 用户,想知道如何安装最新版本的 GDB (> 7.1).我更喜欢使用 Homebrew,但找不到列出的 GDB.
I am a new Mac user and wonder how to install the latest version of GDB (> 7.1). I prefer to use Homebrew, but I could not find GDB listed.
brew install gdb
Error: No available formula for gdb
最好的方法是什么?
安装 Xcode 时,它可能安装了旧版本.目前,
When installed Xcode, it may have installed an older version. Currently,
$ which gdb
/usr/bin/gdb
$ gdb --version
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
但我需要版本 > 7.1
But I need version > 7.1
系统版本,
Model Name: MacBook Air
System Version: Mac OS X 10.7.1 (11B2118)
推荐答案
Homebrew 不提供 gcc 和相关的开发工具公式,因为担心自定义/非系统编译器可能会破坏构建.轻松的两种可能性:
Homebrew does not provide gcc and the associated development tool formulas over concerns that custom/non-system compilers could break builds. Two possibilities for easiness:
这可能是适合你的命令:
This is probably the command for you:
brew install https://raw.github.com/Homebrew/homebrew-dupes/master/gdb.rb
这篇关于Mac OS X v10.7 (Lion) 上的 Gdb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文