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

eneskaya picture eneskaya · Aug 22, 2012 · Viewed 25.6k times · Source

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.

Answer

Erik Hesselink picture Erik Hesselink · Aug 22, 2012

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.