12
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

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

.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

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

Register as a new user and use Qiita more conveniently

  1. You can follow users and tags
  2. you can stock useful information
  3. You can make editorial suggestions for articles
What you can do with signing up
12
Help us understand the problem. What are the problem?