Search code examples
macoscommand-linesudoosx-mountain-liondyld

dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid


since an update to 10.8 I get the following error, when trying to do a sudo command, which is pretty annoying.

dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid

What does that have to mean? I hope anyone can help.


Solution

  • This seems to be a bug introduced in 10.8, see this report. As far as I can tell, the only workaround is not setting DYLD_LIBRARY_PATH or LD_LIBRARY_PATH by default, but only when needed.