With a little side of applesauce...

Monday, May 20, 2013

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

I just upgraded to Mountain Lion on Friday, and have been plagued by this error:
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
The best fix that I have seen is:
sudo () { ( unset LD_LIBRARY_PATH DYLD_LIBRARY_PATH; exec command sudo $* ) }
Short and elegant. Stolen from here.

No comments: