参考:https://jingyan.baidu.com/album/fec7a1e5ec30341190b4e7e5.html?picindex=3

1.在打开的命令行工具中输入如下语句:

ruby -e "$(curl --insecure -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2.输入root密码后会开始下载homebrew,如果此时网速不稳定可能会出现错误提示:curl: (35) Server aborted the SSL handshake。

此时需要执行卸载操作,输入如下命令进行卸载:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

卸载完成后再次尝试安装。

安装成功后出现:

-bash: brew: command not found

解决方法:参考http://blog.csdn.net/li396864285/article/details/52572163

1.sudo vim .bash_profile

2.添加 export PATH=/usr/local/bin:$PATH

3.保存退出后,生效配置即可,source .bash_profile

再次输入brew就已经成功

最新文章

  1. SQL Server 常用命令使用方法
  2. JavaScript DOM编程艺术读书笔记(三)
  3. mount分区为读写属性
  4. [转]dispatcher、redirect和chain三种result type的使用区别
  5. cdoj 48 Cake 水题
  6. AutoLayout UITableViewCell 动态高度
  7. How and Why Unsafe is Used in Java---reference
  8. javaDay1 基础知识
  9. VS2010中<无法打开包括文件:“iostream.h”:>错误解决方法
  10. IIS7.0 Appcmd 命令详解
  11. BZOJ 2406: 矩阵 [上下界网络流 二分答案]
  12. json字符串和json对象之间的转化
  13. vuecli3.0安装搭建项目
  14. Django_Form验证(三)字段,字段的参数,widgets种类
  15. 在try-catch机制优化IO流关闭时,OutputStreamWriter 数据流被截断
  16. 2019.02.07 bzoj4316: 小C的独立集(仙人掌+树形dp)
  17. VAE demo
  18. 【贪心算法】POJ-1328 区间问题
  19. 解决android studio 模拟器取法启动声音的错误
  20. python HTMLTestRunner.py

热门文章

  1. ES6新特性整理,你需要了解的ES6知识
  2. docker编排工具,docker-compose下载与安装
  3. python any和all
  4. php codeception
  5. spring data jpa 动态查询(工具类封装)
  6. python+unittest+requests实现接口自动化
  7. 如何正确且高效地中文汉化Spyder 2 或 Spyder3(图文详解)(博主推荐)
  8. OpenGL6-纹理动画
  9. 关于Jquery事件绑定的心得
  10. 快速部署简单私有云CloudStack(下)