DEV Community

Iano Njuguna
Iano Njuguna

Posted on

Answer: How to install valgrind properly?

Short answer: Make from source.

How?

  1. Uninstall the non working valgrind version with root rights (eg. sudo):

apt-get --purge valgrind or dpkg --remove valgrind or yum remove valgrind

  1. Obtain sources from here.

  2. Identify the latest version (for example 3.17.0)

  3. Download sources : wget https://sourceware.org/pub/valgrind/valgrind-3.17.0.tar.bz2

  4. Decompress archive tar xvf

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more