How to install Valgrind on macOS Catalina (10.15) with Homebrew?

前端 未结 2 1814
自闭症患者
自闭症患者 2020-12-29 04:53

I tried to install Valgrind with command brew install Valgrind and I get a message says:

\"valgrind: This formula either does not compile or function

相关标签:
2条回答
  • 2020-12-29 05:23

    See https://github.com/LouisBrunner/valgrind-macos/.

    Either try

    brew tap LouisBrunner/valgrind
    brew install --HEAD LouisBrunner/valgrind/valgrind
    

    Or compile it from the source, if the above method doesn't work. (But they should have fixed the above method just recently.)

    git clone https://github.com/LouisBrunner/valgrind-macos.git
    cd valgrind-macos
    ./autogen.sh
    ./configure --prefix=/where/you/want/it/installed --enable-only64bit
    make 
    sudo make install
    

    Enjoy!

    0 讨论(0)
  • 2020-12-29 05:27

    https://github.com/sowson/valgrind

    brew install --HEAD https://raw.githubusercontent.com/sowson/valgrind/master/valgrind.rb
    

    MacOS Catalina (10.15.4), I was able to confirm the operation.

    0 讨论(0)
提交回复
热议问题