Mac OS X v10.7上的Gdb(Lion) [英] Gdb on Mac OS X v10.7 (Lion)
本文介绍了Mac OS X v10.7上的Gdb(Lion)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是新的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.
但是我需要version> 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:
- 使用 http:// www .macports.org /
- 看这里 https://github.com/mxcl/homebrew/wiki/Custom-GCC-and-cross-compilers
- Use http://www.macports.org/
- Look here https://github.com/mxcl/homebrew/wiki/Custom-GCC-and-cross-compilers
这可能是您的命令:
This is probably the command for you:
brew install https://raw.github.com/Homebrew/homebrew-dupes/master/gdb.rb
这篇关于Mac OS X v10.7上的Gdb(Lion)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文