1、打开终端创建安装目录

sudo mkdir -p /opt/homebrew

2、修改目录权限

sudo chown -R $(whoami) /opt/homebrew

3、进入opt文件夹

cd /opt

4、安装homebrew

curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew

5、将路径增加到环境变量中

编辑.zshrc
vim ~/.zshrc
将如下代码放在最后
path=('/opt/homebrew/bin' $path)
export PATH
保存、退出后执行如下 让变量生效
source ~/.zshrc

最新文章

  1. win2008 IIS与php整合
  2. <转>最新版SDWebImage的使用
  3. opencv的学习笔记1
  4. python-操作MySQL数据库
  5. MATLAB实现将图像转换为素描(简笔画)风格
  6. MFC中改变控件的大小和位置
  7. IOS GCD
  8. 记录一下在WinXP上搭建Apache的httpd+PHP+MySQL+Wordpress的过程
  9. 在网络通讯中应用Protobuf
  10. Python学习笔记——基础篇【第五周】——正在表达式(re.match与re.search的区别)
  11. C# Webclient 和 Httpclient如何通过iis authentication 身份验证。
  12. textarea文本域值中含有大量\t\n问题
  13. Docker Win 10 安装
  14. springboot动态修改日志级别+权限认证
  15. MATLAB基础函数命令
  16. Java代码质量改进之:同步对象的选择
  17. Eclipse进度条出现“Remote System Explorer Operation”解决方法
  18. JAVA基础知识总结:二十
  19. ubuntu 安装 firefox 的 jre plugin
  20. shell脚本实例-跟踪网站日常变动

热门文章

  1. P9033题解
  2. NTP网络时间服务器(时间同步服务器)产品介绍及技术研究分析
  3. ScrollView里面不能嵌套一个FlatList,这个需要如何通过FlatList自己单独实现
  4. 创建一个httpserver、httpclient
  5. 2023-03-01 react-native 实现 复制功能 @react-native-community/clipboard 报错:TypeError: null is not an object (evaluating 'NativeClipboard_1.default.setString')。
  6. 求助:我需要用Python中parsel模块提取文章的文本内容,有什么办法
  7. mongodb-命令小结
  8. lib_0001_file_manager.py
  9. MyBatis_04(MyBatis获取“参数值”的两种方式)
  10. 升级安装cuda