Is there a way to install Valgrind on Catalina?

后端 未结 4 1007
盖世英雄少女心
盖世英雄少女心 2021-02-05 08:10

Is there a way to install Valgrind on Catalina and have it run properly? If so, I would very much appreciate a step-by-step process.

I tried installing Valgrind with htt

相关标签:
4条回答
  • Currently, no. The repo you link has an issue raised about Catalina compatibility. As you also show, the brew package has its own problems as well. Official valgrind only supports 10.12.

    You'll just have to wait, or containerize it. Although if you containerize valgrind, you would likely need a compatible build container as well.

    0 讨论(0)
  • 2021-02-05 08:42

    Ok. I've found a way to use Valgrind on Catalina. Here's a link to my guide for how https://github.com/john-yohan-park/Valgrind_Catalina

    0 讨论(0)
  • 2021-02-05 08:50

    This is how I just did it on Catalina 10.15.5:

    brew remove valgrind # remove previous attempts at installing it (if any)
    brew tap LouisBrunner/valgrind
    brew install --HEAD LouisBrunner/valgrind/valgrind
    

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

    0 讨论(0)
  • 2021-02-05 08:53

    Works amazingly!! see https://github.com/LouisBrunner/valgrind-macos/issues/5.

    Not Homebrew, you need to compile it from source, but it's not so difficult.

    1. git clone https://github.com/LouisBrunner/valgrind-macos.git
    2. cd valgrind
    3. sudo ./autogen.sh
    4. sudo ./configure --prefix=/where/you/want/it/installed --enable-only64bit
    5. copy the [contents][1] to ./coregrind/m_mach/mach_basics.c
    6. sudo make 
    7. sudo make install
    

    enjoy!

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