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

这两个变量被设置了

DYLD_LIBRARY_PATH 

*或* 

LD_LIBRARY_PATH, 用下面的明令查找一下,一般在.bash_profile, .bashrc 等文件中。执行brew doctor 你会发现,不建议设置这个变量。

grep LD_LIBRARY_PATH ~/.*
或
grep DYLD_LIBRARY_PATH ~/.*

原文地址:https://www.cnblogs.com/iosdev/p/3384887.html