Valgrind does not work with WSL?

前端 未结 2 1520
有刺的猬
有刺的猬 2020-12-11 10:45

When I installed WSL for my computer I was very excited to have a more natively supported Linux system rather than using VirtualBox. H

相关标签:
2条回答
  • 2020-12-11 10:55

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

    0 讨论(0)
  • 2020-12-11 11:16

    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
    0 讨论(0)
提交回复
热议问题