【问题标题】:Homebrew keep showing warning to set PATH on OS X 10.11Homebrew 不断显示在 OS X 10.11 上设置 PATH 的警告
【发布时间】:2016-01-05 07:37:49
【问题描述】:

我在 Mac OSX 10.11 上运行后

brew doctor

我的终端中有一个警告。

Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc

在我的.zshrc 文件中修复此路径后,我再次运行brew doctor, 这个错误仍然存​​在。

有什么建议吗?

【问题讨论】:

    标签: macos homebrew zsh zshrc


    【解决方案1】:

    我的.zshrc 文件现在的样子:

    export PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    

    我终于通过重新启动我的终端并再次运行brew doctor 解决了这个问题。 警告消失!

    【讨论】:

    • 感谢重启终端的提示! :)
    【解决方案2】:

    你可以解决这个问题:删除 /usr/local/sbin 中的所有“未绑定”*; 那么 cakebrew 和 homebrew 医生都可以 祝你有美好的一天

    【讨论】:

      猜你喜欢
      • 2016-05-31
      • 1970-01-01
      • 1970-01-01
      • 2016-05-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多