如何正确安装valgrind? [英] How to install valgrind properly?

查看:71
本文介绍了如何正确安装valgrind?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在正在安装valgrind,直到执行"make install"命令为止.下一个命令"make regtest"输出下一个错误:

I'm installing valgrind now, until the ‘make install’ command it goes good. The next command- ‘make regtest’ outputs the next error:

../../depcomp: line 689: exec: g++: not found
make[5]: *** [leak_cpp_interior.o] Error 127
make[5]: Leaving directory `/home/kbubuntu/valgrind-3.9.0/memcheck/tests'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/home/kbubuntu/valgrind-3.9.0/memcheck/tests'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/home/kbubuntu/valgrind-3.9.0/memcheck/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/kbubuntu/valgrind-3.9.0/memcheck'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/kbubuntu/valgrind-3.9.0'
make: *** [check] Error 2

我该如何解决?

谢谢.

推荐答案

所有主要的Linux发行版都将在其存储库中包含valgrind.您可以通过以下方式在基于debian的,基于 apt 的系统上找到它:

All major linux distributions will include valgrind in their repositories. You can find this on debian derived, apt based systems with:

apt search valgrind

但是首先尝试:

apt install valgrind

它应该工作,并引入所有依赖项.请记住,如果您不是超级用户,则需要使用 sudo 开头.

It should work, and pull in any dependencies. Remember, if you are not the superuser, you'll need to preface those with sudo.

这是一个很棒的工具,玩得开心.

It's a great tool, have fun.

这篇关于如何正确安装valgrind?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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