How to build and install Valgrind on Mac?

后端 未结 5 1572
粉色の甜心
粉色の甜心 2021-02-03 22:14

I am on Mac OS X using codeblocks 10.05

I downloaded Valgrind, and extracted a folder. I am completely lost from there, and have no idea how to build it.

I do no

5条回答
  •  难免孤独
    2021-02-03 23:07

    You can install it through brew for Mac:

    brew install valgrind
    

    You might have to manually link the entry to /usr/local/bin as brew refused to do it in my case:

    $ ln /usr/local/Cellar/valgrind/3.8.1/bin/vgdb /usr/local/bin/vgdb
    ln: /usr/local/bin/vgdb: Permission denied
    $ sudo ln /usr/local/Cellar/valgrind/3.8.1/bin/vgdb /usr/local/bin/vgdb
    

提交回复
热议问题