Dee*_*dav 9 valgrind macos-ventura
我在通过 Homebrew 在 macOS Ventura (13.0) 上安装 Valgrind 时遇到问题。在终端中我尝试过以下操作。
$ brew install valgrind
Run Code Online (Sandbox Code Playgroud)
Homebrew 自动更新后,我收到以下消息:
valgrind: Linux is required for this software.
Error: An unsatisfied requirement failed this build.
Run Code Online (Sandbox Code Playgroud)
有什么办法可以安装 Valgrind 吗?
我想运行 Valgrind 来调试 c
Pau*_*oyd 11
macOS 13.0 不支持 Valgrind。
最后一个官方支持的版本是 10.13。根本不支持苹果芯片。
此处提供了对 10.13 之后的 macOS 版本的一些支持https://github.com/LouisBrunner/valgrind-macos
Valgrind 开发人员都没有积极致力于 Valgrind macOS 的开发。苹果的贡献为零。我偶尔会进行一些更改,但这只是检查旧代码是否仍然可以构建的级别。
如果您的软件可移植到其他操作系统,您最好的选择是在 FreeBSD 或 Linux 上测试它。