Mac安装brew

作者: 小隐_df8d | 来源:发表于2018-11-06 11:42 被阅读0次

1.安装命令

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

2.更新brew:brew update

出现错误提示:/usr/local must be writable!

解决:给电脑用户加权限

https://www.jianshu.com/p/36250f81e28b

3.重新update时报错

(1)Error: Could not link:

        /usr/local/share/doc/homebrew

        Please delete these paths and run `brew update`.

        删除rm -r -f /usr/local/share/doc/homebrew

4.检查是否正常:brew doctor

正常:Your system is ready to brew.

相关文章

网友评论

    本文标题:Mac安装brew

    本文链接:https://www.haomeiwen.com/subject/qiwyxqtx.html