M1 安装homebrew详解
2024-10-21 22:52:39
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
最新文章
- win2008 IIS与php整合
- <;转>;最新版SDWebImage的使用
- opencv的学习笔记1
- python-操作MySQL数据库
- MATLAB实现将图像转换为素描(简笔画)风格
- MFC中改变控件的大小和位置
- IOS GCD
- 记录一下在WinXP上搭建Apache的httpd+PHP+MySQL+Wordpress的过程
- 在网络通讯中应用Protobuf
- Python学习笔记——基础篇【第五周】——正在表达式(re.match与re.search的区别)
- C# Webclient 和 Httpclient如何通过iis authentication 身份验证。
- textarea文本域值中含有大量\t\n问题
- Docker Win 10 安装
- springboot动态修改日志级别+权限认证
- MATLAB基础函数命令
- Java代码质量改进之:同步对象的选择
- Eclipse进度条出现“Remote System Explorer Operation”解决方法
- JAVA基础知识总结:二十
- ubuntu 安装 firefox 的 jre plugin
- shell脚本实例-跟踪网站日常变动
热门文章
- P9033题解
- NTP网络时间服务器(时间同步服务器)产品介绍及技术研究分析
- ScrollView里面不能嵌套一个FlatList,这个需要如何通过FlatList自己单独实现
- 创建一个httpserver、httpclient
- 2023-03-01 react-native 实现 复制功能 @react-native-community/clipboard 报错:TypeError: null is not an object (evaluating &#39;NativeClipboard_1.default.setString&#39;)。
- 求助:我需要用Python中parsel模块提取文章的文本内容,有什么办法
- mongodb-命令小结
- lib_0001_file_manager.py
- MyBatis_04(MyBatis获取“参数值”的两种方式)
- 升级安装cuda