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

相关推荐
阿赛工作室7 小时前
mac系统使用Hbuilderx调试安装app
macos
weixin_4624462312 小时前
Linux/Mac 一键自动配置 JAVA_HOME 环境变量(含 JDK 完整性校验)
java·linux·macos
Frank学习路上12 小时前
【Qt】问题记录ld: framework ‘AGL‘ not found on MacOS 26
开发语言·qt·macos
SoraLuna12 小时前
KuiklyUI for OpenHarmony 实战 02:Kuikly 工程创建与鸿蒙运行(Mac)
macos·华为·harmonyos
微信-since8119214 小时前
【mac】 mac使用
macos
REDcker1 天前
macOS「系统数据」暴涨到 几百GB?一篇文章教你安全清理(含排查顺序)
macos
sysinside1 天前
macOS Sequoia 15.7.2 (24G325) 正式版 ISO、IPSW、PKG 下载
macos·sequoia
只是有点小怂1 天前
macOS 没有像 Windows 上的 MobaXterm 的工具
macos
小雨青年1 天前
环境准备 Windows Mac 下 Docker Desktop 的安装与镜像源加速
windows·macos·docker
数据知道1 天前
一文掌握 MongoDB 详细安装与配置(Windows / Linux / macOS 全平台)
linux·数据库·windows·mongodb·macos