今天想在工作电脑上安装 ruby 2.4,结果执行了 rvm install 2.4 之后报错,说要先执行 brew update。
结果执行 brew upate 也不成功,报了这个错
Running Homebrew as root is extremely dangerous and no longer supported. As Homebrew does not drop privileges on installation you would be giving all build scripts full access to your system.
网上很多说要修改 /usr/local 的所有者,我试了无法修改,原因不明
最后执行这条命令后解决问题
brew install Graphviz