Valgrind does not work with WSL?

人走茶凉 提交于 2019-11-29 12:45:00

It's definitely possible

I've encountered some problems installing it directly with apt, however it can be installed manually with some very simple steps:

  • Download the source file: wget http://valgrind.org/downloads/valgrind-3.12.0.tar.bz2 (by the time you read this there could be a newer version)
  • Extract the archive: tar -xvjf valgrind-3.12.0.tar.bz2
  • Configure the installation process: cd into the exctracted folder valgrind-3.12.0 and then launch ./configure
  • Make: simply launch make while in the valgrind-3.12.0 folder
  • Check the dependencies: launch make check to see whether all the dependencies necessary for the installation are satisfied (e.g: you'll have to install g++, just launch sudo apt install g++)
  • Install valgrind: type sudo make install to install it

I had the same problem, the solution was to install Windows 10 creators update (version 1703), and reinstall Bash/WSL. Valgrind now works fine :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!