mac homebrew 安装

Homebrew has enabled anonymous aggregate formulae and cask analytics.

Read the analytics documentation (and how to opt-out) here:

No analytics data has been sent yet.

Homebrew is run entirely by unpaid volunteers. Please consider donating:

Next steps:

  • To add Homebrew to your PATH, add to your shell profile (e.g. ~/.bash_profile or ~/.zprofile):
    • eval "$(/opt/homebrew/bin/brew shellenv)" on Apple Silicon
    • eval "$(/usr/local/bin/brew shellenv)" on Intel
  • Run brew help to get started
  • Further documentation:

Rm -rf ~/.zsh.... // 删除历史记录

Echo $SHELL // 查看用的是哪个终端

cat /etc/shells // 查看所有的终端

Chsh -s /bin/zsh // 切换成 zsh 终端

  • 打开"终端"。
  • 输入命令 chsh -s /bin/bash 来切换到 bash。
  • 输入命令 chsh -s /bin/zsh 来切换回 zsh。

打开 moren 的终端: open ~/.zshrc ,没有的情况就自动创建一个:touch ~/.zhsrc

查找安装目录:which brew

larave@laraveldeMacBook-Pro ~ % which brew

/opt/homebrew/bin/brew

配制环境变量:export PATH=${PATH}:/usr/local/xxx(你的地址)

export PATH="/usr/local/Homebrew/bin:$PATH"

以下两个链接:安装brew

重要的源文件链接: 清华源:

https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/

https://www.bilibili.com/video/BV1TJ4m157Sm/?spm_id_from=333.337.search-card.all.click\&vd_source=3fa570246e6039c5aaa3b3950fd03f45

Mac安装Homebrew实操_哔哩哔哩_bilibili

以下是一键执行操作:

https://zhuanlan.zhihu.com/p/111014448

这个链接可以看看:

【Mac】6: 苹果电脑必装大神器 Homebrew !没有装它,你的苹果电脑就不能发挥最大作用_哔哩哔哩_bilibili

Xcode 安装 :

Command Line Tools

xcode-select 是 macOS 上的一个命令行工具,可以帮助你在终端中管理当前使用的 Xcode 版本

如果已经安装过Xcode Command Line Tools,那么需要把之前安装的删除,再安装:

rm -rf /Library/Developer/CommandLineTools

xcode-select --install

确认Xcode Command Line Tools正确安装在:/Library/Developer/CommandLineTools

xcode-select -p

确认安装版本

xcode-select --version

相关推荐
Dachui_112215 小时前
MacOS上如何运行内网穿透详细教程
macos
Bruce_Liuxiaowei18 小时前
使用Python脚本在Mac上彻底清除Chrome浏览历史:开发实战与隐私保护指南
chrome·python·macos
iFlyCai20 小时前
对Mac文字双击或三击鼠标左键没有任何反应
macos·计算机外设
請你喝杯Java1 天前
Mac上Cursor无法安装插件解决方法
macos·cursor·vsode
网络之路Blog1 天前
【实战中提升自己】内网安全部署之端口隔离与MAC地址认证
安全·macos·网络之路一天·华为华三数通基础·华为华三企业实战架构·华为中小型企业实战·华为华三计算机网络基础
心随_风动2 天前
主流操作系统对比分析(macOS、Linux、Windows、Unix)
linux·windows·macos
lxw18449125142 天前
macOS 系统设置息屏情况下,PHP等后台脚本继续执行
macos
Brian_Lucky2 天前
在 macOS 上合并 IntelliJ IDEA 的项目窗口
java·macos·intellij-idea
未来之窗软件服务2 天前
声音分离人声和配乐-从头设计数字生命第5课, demucs——仙盟创梦IDE
ide·macos·xcode·仙盟创梦ide·数字生命
我该如何取个名字2 天前
Mac mini 安装mysql数据库以及出现的一些问题的解决方案
数据库·mysql·macos