Valgrind with MacOS Sierra - cannot create symlink [message #1781308] |
Mon, 05 February 2018 16:29  |
Eclipse User |
|
|
|
On MacOS Sierra, it is common for users to install valgrind via Brew. This installs the binary as /usr/local/bin/valgrind.
The Linux Tools plugin looks for valgrind at /usr/bin/valgrind, and does not search /usr/local/bin or allow the user to specify a custom path as far as I can tell.
The Linux Tools documentation says to create a symlink in /usr/bin. Apart from the `ln` command being incorrect (the parameters are backwards), this is not possible in Sierra due to System Integrity Protection (SIP).
SIP prevents any modifications to /usr/bin even by the root user. It is therefore impossible to create a /usr/bin/valgrind symlink even as root, without disabling SIP, and I'd suggest that disabling SIP is a very bad idea.
So I think we're left in a situation where valgrind can be run from the command line, but the Linux Tools plugin within Eclipse is unable to be used.
Is this an accurate assessment or is there a way around this that I don't know yet?
|
|
|
|
Re: Valgrind with MacOS Sierra - cannot create symlink [message #1781315 is a reply to message #1781308] |
Mon, 05 February 2018 18:03  |
Eclipse User |
|
|
|
I think that section of the manual is out of date. Looking at the current code, I see no hard-coding of /usr/bin/valgrind. The ValgrindCommand class is just running "valgrind" and expecting it to be on the Path. I don't have a Mac system to test with, but did you already try putting /usr/local/bin on the path used to bring up your Eclipse?
|
|
|
Powered by
FUDForum. Page generated in 0.04379 seconds