如何使用Homebrew在macOS Catalina(10.15)上安装Valgrind? [英] How to install Valgrind on macOS Catalina (10.15) with Homebrew?

查看:745
本文介绍了如何使用Homebrew在macOS Catalina(10.15)上安装Valgrind?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用命令brew install Valgrind安装Valgrind,并且收到一条消息:

I tried to install Valgrind with command brew install Valgrind and I get a message says:

"valgrind:由于上游不兼容,此公式无法在比Sierra更高的macOS版本上编译或正常运行.错误:未满足的要求导致此构建失败."

"valgrind: This formula either does not compile or function as expected on macOS versions newer than Sierra due to an upstream incompatibility. Error: An unsatisfied requirement failed this build."

我还尝试在代码的开头部分"brew edit valgrind"并将"sourceware.org/git/valgrind.git"替换为"git://sourceware.org/git/valgrind.git",然后写道在Iterm"brew install --HEAD valgrind"上,但是它给了我

I also tried to "brew edit valgrind" and replace "sourceware.org/git/valgrind.git" with "git://sourceware.org/git/valgrind.git" in head section of the code, then wrote on Iterm "brew install --HEAD valgrind" but it gives me:

Last 15 lines from /Users/m/Library/Logs/Homebrew/valgrind/02.configure:
checking for gcc-ar... no
checking for perl... /usr/bin/perl
checking for gdb... /no/gdb/was/found/at/configure/time
checking dependency style of clang... none
checking for diff -u... yes
checking for clang option to accept ISO C99... none needed
checking for a supported version of gcc... ok (clang-11.0.0)
checking build system type... x86_64-pc-darwin
checking host system type... x86_64-pc-darwin
checking for a supported CPU... ok (x86_64)
checking for a 64-bit only build... yes
checking for a 32-bit only build... no
checking for a supported OS... ok (darwin)
checking for the kernel version... unsupported (19.0.0)
configure: error: Valgrind works on Darwin 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x and 17.x (Mac OS X 10.6/7/8/9/10/11 and macOS 10.12/13)

READ THIS: https://docs.brew.sh/Troubleshooting

Mac OS 10.15 Catalina当前不支持

推荐答案

Valgrind. 请参见可以在Catalina上安装Valgrind的方法吗?.

Valgrind is currently not supported on Mac OS 10.15 Catalina. See Is there a way to install Valgrind on Catalina?.

这篇关于如何使用Homebrew在macOS Catalina(10.15)上安装Valgrind?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆