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
歡迎關注本站公眾號,獲取更多信息