首页 > 其他分享 >macOS 安装homebrew

macOS 安装homebrew

时间:2022-08-20 08:22:05浏览次数:84  
标签:core macOS git com install Homebrew homebrew 安装

打开官方链接homebrew

# 安装命令
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# 上述命令在安装过程中,会出现超时,链接不到github的问题
curl: (7) Failed to connect to http://raw.githubusercontent.com port 443: Operation timed out

# 解决方案是,把安装的shell脚本下载下来安装
git clone https://github.com/Homebrew/install.git

# 进入目录并执行安装脚步
cd install && /bin/bash install.sh

# 在安装过程中可能会出现
fatal: unable to access 'https://github.com/Homebrew/homebrew-core.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 

# 把home-core的包下载下来
cd "$(brew --repo)/Library/Taps/"
mkdir Homebrew && cd Homebrew
git clone git://mirrors.ustc.edu.cn/homebrew-core.git

# 执行更新命令
brew update

Error: 
  homebrew-core is a shallow clone.
To `brew update`, first run:
  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.

# 提示需要先执行如下命令
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow

# 在执行更新命令
brew update

标签:core,macOS,git,com,install,Homebrew,homebrew,安装
From: https://www.cnblogs.com/simple-record/p/16607099.html

相关文章

  • 关于安装Wind金融终端后,启动QT后频繁跳出WDF.dll文件注册成功窗口的问题
    安装Wind金融终端后,启动QT后频繁跳出WDF.dll文件注册成功窗口的信息。经过排查后发现,主要问题出在系统环境变量上。安装了wind金融终端后,用户系统环境变量PATH里多了两个......
  • macbook 安装docker machine
    dockermachine在最新版本已被弃用,用dockerdesktop替代#安装docker-machinebase=https://github.com/docker/machine/releases/download/v0.16.2&&curl-L$base......
  • docker安装mysql8.0
    dockerrun\-p3306:3306\-eMYSQL_ROOT_PASSWORD=QQ.123\-v/home/data/mysql8/data:/var/lib/mysql:rw\-v/home/data/mysql8/log:/var/log/mys......
  • Python PyInstaller安装和使用教程(详解版)
    在创建了独立应用(自包含该应用的依赖包)之后,还可以使用PyInstaller将 Python 程序生成可直接运行的程序,这个程序就可以被分发到对应的Windows或MacOSX平台上运行......
  • windows 安装 Anaconda3
    1.准备工作:下载软件anaconda官网下载地址:https://www.anaconda.com/products/distribution#Downloads 我下载的最新的安装包,下载链接: https://repo.an......
  • centos常用命令及软件安装
    常用命令pwd查看当前所在目录free-h查看内存使用情况df-lh查看磁盘空间使用情况uname-a查看系统版本nohub[命令]&后台运行ps-ef|grep[关键字]查看相关进程的......
  • centos7安装nginx
    1、解压tar-zxvfnginx.tar.gz2、进入解压后的文件cdnginx3、执行configure文件./configure可能会有报错:./configure:error:theHTTPgzipmodulerequiresth......
  • conda自动安装cpu版本pytorch
    问题描述由于conda自带的源太慢,换成了清华源,结果无论怎么下载都无法使用cuda。检查conda列表发现装的是cpu版本原因网上众说纷纭,例如删掉cpu-only包,但都是瞎猫碰上死耗......
  • Mac电脑怎么安装Jmeter
    一、Jmeter简介ApacheJMeter是Apache组织开发的基于Java的压力测试工具。用于对软件做压力测试,它最初被设计用于Web应用测试,但后来扩展到其他测试领域。目前也是测试领......
  • Ubuntu安装openssl
    wgethttps://www.openssl.org/source/old/1.1.1/openssl-1.1.1.tar.gztarxvfopenssl-1.1.1.tar.gzcdopenssl-1.1.1./configno-asmsharedno-async--prefix=/usr--c......