Windows 10 & valgrind

This post is based upon 'How to use valgrind on Windows'. I have condensed the list of necessary commands and picked out anything mentioned in the comments that seems sensible.

The assumption here is that you have bash installed and you have a bash command window open.

Make sure you do not have valgrind already installed by entering valgrind on the command line.

If you do have it installed uninstall it using the apt utilities.

Update and install required utilities and dependencies:

sudo apt update
sudo apt upgrade
sudo apt-get install subversion
sudo apt-get install libc6-dbg
sudo apt-get install automake
sudo apt-get install build-essential
sudo apt-get install make

Obtain and build valgrind:

svn co svn:// valgrind
cd valgrind/

sudo make install

Test that valgrind is installed by entering valgrind on the command window.


Sadly this will not permit you to run an executable built for Windows.

You can however run an executable built within the Ubuntu system for Windows with valgrind.