下午在尝试安装OpenCV,想从homebrew安装cmake。结果发现版本更新后好像除了一些问题,brew doctor 会报问题
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
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"'>> ~/.bash_profile
如果直接按照它的建议似乎会有permission denied,可以尝试输入
sudo nano ~/.bash_profile
然后手动添加路径 PATH="/usr/local/sbin:$PATH"
按照指示来就好了。