valgrind: failed to start tool 'memcheck' for platform 'amd64-linux

valgrind运行错误

 

  • 问题描述
    • valgrind运行时,无法找到相关工具文件,具体报错如下
    • valgrind: failed to start tool 'memcheck' for platform 'amd64-linux': No such file or directory
  • 解决方法
    •  导出VALGRIND_LIB路径,用法如下(假设valgrind已经被安装到/home/test/valgrind目录):
      • export VALGRIND_LIB=/home/test/valgrind/lib/valgrind
    • 或者也可以如下方式调用valgrind:
      • VALGRIND_LIB=/home/test/valgrind/lib/valgrind /home/test/valgrind/bin/valgrind --help

转载于:https://www.cnblogs.com/hdflzh/p/4191492.html

你可能感兴趣的:(valgrind: failed to start tool 'memcheck' for platform 'amd64-linux)