Macos 自制软件不断显示警告,要求在OS X 10.11上设置路径
跑步后我使用Mac OSX 10.11Macos 自制软件不断显示警告,要求在OS X 10.11上设置路径,macos,homebrew,zsh,zshrc,Macos,Homebrew,Zsh,Zshrc,跑步后我使用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/sbi
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
,
这个错误仍然存在
有什么建议吗?我的
.zshrc
文件现在看起来像什么:
export PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
通过重新启动终端并再次运行brew doctor
,我终于解决了这个问题。
警告消失 感谢您提示重新启动终端!:)