Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Valgrind on macOS Sierra

I following this guide:

valgrind installation guide

After I have downloading the package, and I have run the sh script, but when I launch the make install command, it couldn't create the folder because it don't have the permission (even though I have used the sudo command).

Furthermore I tried with brew but I have this error:

valgrind: This formula either does not compile or function as expected on macOS versions newer than El Capitan due to an upstream incompatibility.

Error: An unsatisfied requirement failed this build.

like image 254
th3g3ntl3man Avatar asked Nov 17 '16 08:11

th3g3ntl3man


People also ask

Does valgrind work on macOS?

x and later), ARM64/Android, X86/Android (4.0 and later), MIPS32/Android, X86/FreeBSD, AMD64/FreeBSD, X86/Darwin and AMD64/Darwin (Mac OS X 10.12). Valgrind is Open Source / Free Software, and is freely available under the GNU General Public License, version 2.

Does valgrind work on Mac M1?

Valgrind does not seem to work on M1 Macs.

Can you install Linux on MacBook?

If you want to have the best of both Mac OS and Linux on your MacBook, you will have to install and run Linux on your Mac. The fastest way to install Linux on Mac is through the use of reliable virtual desktop software, such as Parallels.


1 Answers

You can download Valgrind's latest version from their website. Then, you can just ./autogen.sh to install Valgrind. I personally did not encounter anything needed to make.

However, the sad news is, even the most recent version of Valgrind is not very usable on Mac OS Sierra. The reason is that Apple has not released the part of the source code that makes Valgrind crash, without which, the Valgrind maintainers can hardly do anything. You can read more about the discussion around the issue here .

Because Mac OS kernel is under Apple Public Source License, it has to be open-sourced someday. Thus, a Sierra-complitable version of Valgrind is only a matter of time.

Currently, I use Valgrind under Linux. This is all I can suggest now.

like image 183
Musen Avatar answered Sep 28 '22 03:09

Musen