brew 無(wú)法正常工作
需要手動(dòng)卸載再安裝brew
ruby -e "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"](https://raw.githubusercontent.com/Homebrew/install/master/uninstall)")
/usr/bin/ruby -e "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/master/install)"](https://raw.githubusercontent.com/Homebrew/install/master/install)")
更多情況請(qǐng)通過(guò)這個(gè) http://brew.sh/ 查看對(duì)應(yīng)解決方法
port 無(wú)法正常工作
這個(gè)是很正常的伏伯,會(huì)報(bào)告錯(cuò)誤
Error: Current platform "darwin 15" does not match expected platform "darwin 14"
Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
OS platform mismatch
while executing
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch
你需要去這里 https://www.macports.org/install.php 重新下載對(duì)應(yīng)系統(tǒng)的macport
建議升級(jí)macport后執(zhí)行這3個(gè)命令
# 更新port信息
sudo port -v selfupdate
# 查看可更新的軟件信息
sudo port info outdated
# 更新這些軟件
sudo port upgrade outdated
brew 運(yùn)行錯(cuò)誤 /usr/local/include is not writable
錯(cuò)誤表現(xiàn)
提示/usr/local/include is not writable的錯(cuò)誤
Error: /usr/local must be writable!
此問(wèn)題為權(quán)限問(wèn)題漱病,需要升高權(quán)限
給予 /usr/local/
用戶可用權(quán)限
添加用戶的可寫執(zhí)行權(quán)限