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