Search code examples
ubuntuvalgrind

Ubuntu: valgrind: failed to start tool 'memcheck' for platform 'amd64-linux': No such file or directory


I have installed valgrind with no problems but when running it I keep getting the following error:

valgrind: failed to start tool 'memcheck' for platform 'amd64-linux': No such file or directory

I have adjusted my bash file accordingly. I added the following path: /usr/bin/valgrind from using: which valgrind command and it's still not working. Then I added the path:/usr/lib/valgrind and it is still not working. I think I am confused about the correct local directory for using Ubuntu.

I am using:

export VALGRIND_LIB="/usr/lib/valgrind"

Do I have to add my local directory first?


Solution

  • add "export VALGRIND_LIB=/usr/lib/valgrind/"(or /usr/local/lib/valgrind/ or other place where you install your valgrind lib) into ~/.bashrc