【问题标题】:Install valgrind in MacOS X [duplicate]在 MacOS X 中安装 valgrind [重复]
【发布时间】:2017-02-14 11:08:48
【问题描述】:

我不确定是否可以在我的 Macbook Pro 中安装 valgrind 调试器。我在网上搜索过,但大多数帖子都与 Ubuntu 有关。有人可以告诉这是否可能吗?如果是这样,例如可以通过 brew 吗?

【问题讨论】:

  • 在使用 XCode(clangclang++)编译器从 SVN 存储库下载和构建 Valgrind 时,我没有遇到任何重大问题(除了需要添加自定义抑制)。

标签: c macos debugging homebrew valgrind


【解决方案1】:

你可以使用“brew install valgrind”来安装valgrind。

【讨论】:

  • 感谢您的回复.. 我收到此错误消息:valgrind: This formula either does not compile or function as expected on macOS versions newer than El Capitan due to an upstream incompatibility. Error: An unsatisfied requirement failed this build.
  • 我相信 Valgrind 于 10 月 24 日发布了一个新版本,它确实支持 Sierra。我假设这就是你所拥有的。现在试试?
猜你喜欢
  • 1970-01-01
  • 2015-10-01
  • 2018-06-16
  • 2014-07-09
  • 2019-03-14
  • 2020-02-10
  • 2018-07-20
  • 2013-02-03
  • 2011-01-08
相关资源
最近更新 更多