LoginSignup
12
12

More than 5 years have passed since last update.

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

Posted at

.bash_profileに以下が設定されていると、

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH

sudoしたときに以下メッセージが表示される
Macのバグらしい?です。
参考URL:http://qiita.com/items/b5a6d1c6cdcb22be565f

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

いちいち、うるさいので、黙らせる。
.bash_profileの1番最後に以下を追加

unset LD_LIBRARY_PATH
unset DYLD_LIBRARY_PATH

更新

$ source ~/.bash_profile

これで、邪魔なメッセージが出なくなる。

12
12
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
12