Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsValgrind with MacOS Sierra - cannot create symlink
https://www.eclipse.org/forums/index.php/mv/msg/1091523/1781308/#msg_1781308
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?]]>David Antliff2018-02-05T21:29:15-00:00Re: Valgrind with MacOS Sierra - cannot create symlink
https://www.eclipse.org/forums/index.php/mv/msg/1091523/1781309/#msg_1781309
Open the project properties and select "Linux Tools Path", then select "Prepend string to PATH" and choose "Custom", then add the text "/usr/local/bin" to the text field.
This should enable the Linux Tools plugin to find the valgrind binary in /usr/local/bin.]]>David Antliff2018-02-05T21:32:17-00:00Re: Valgrind with MacOS Sierra - cannot create symlink
https://www.eclipse.org/forums/index.php/mv/msg/1091523/1781315/#msg_1781315
Jeff Johnston2018-02-05T23:03:33-00:00