mac系統安裝brew 以及安裝ant遇到問題/usr/local is not writable 解決方法


brew安裝命令如下:

curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1

ant安裝
sudo brew install ant
碰到可能碰到類似問題:

MacBook-Air:appium tenda$ sudo brew install ant

Error: 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.

提升權限即可解決:

sudo chown -R $(whoami):admin /usr/local


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM