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)