Valgrind is a tool that can be used to detect memory management and threading bugs.

The Valgrind logo.


  1. Download the latest Valgrind source code from For example, this downloads version 3.12.0:

  2. Unpack the tarball with tar

  3. cd into the root directory of the unpacked source code.

  4. Run configure with

  5. Run make with:

  6. Install valgrind onto your system with:

  7. Done! You should now be able to run valgrind by typing:

    from any directory in your shell.

Posted: June 13th, 2017 at 5:53 am
Last Updated on: June 13th, 2017 at 6:01 am