首页 > 其他分享 >新mac安装brew

新mac安装brew

时间:2023-11-08 18:31:38浏览次数:29  
标签:git cn mac https edu brew homebrew 安装

新入手了mac, 特记录使用过程中遇到的坑

第一步就是安装brew,使用github那个地址,一直报错,这里耗费了一些时间

使用下面的命令行

/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"

如果上面安装异常,替换为国内源

替换为中科大源
# 替换各个源
$ git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
$ git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
$ git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
 
# zsh 替换 brew bintray 镜像
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
$ source ~/.zshrc
 
# bash 替换 brew bintray 镜像
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
$ source ~/.bash_profile
 
# 刷新源
$ brew update
 


清华源: https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/

阿里云: https://developer.aliyun.com/mirror/homebrew/

标签:git,cn,mac,https,edu,brew,homebrew,安装
From: https://blog.51cto.com/ding/8257576

相关文章

  • arthas安装和简单使用
    介绍Arthas是一款线上监控诊断产品,通过全局视角实时查看应用load、内存、gc、线程的状态信息,并能在不修改应用代码的情况下,对业务问题进行诊断,包括查看方法调用的出入参、异常,监测方法执行耗时,类加载信息等,大大提升线上问题排查效率。------------截取arthas官网安装外网......
  • Linux安装配置apache
    1.获取软件: http://httpd.apache.org/ httpd-2.2.21.tar.gz2.安装步骤:解压源文件:1tarzvxfhttpd-2.2.21.tar.gz2cdhttpd-2.2.213./configure--prefix=/usr/local/apache2--enable-so--enable-rewrite4make5makeinstall运行./configure命令进行编译源代......
  • Linux下Mongodb安装和启动配置
    Mongodb的安装与启动下载链接: http://www.mongodb.org/downloads----------------------------------------------------------------------------Linux安装第一步:下载安装包下载版本:2.0.2-rc2下载链接: http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.4.tgz首先在......
  • linux 安装 elasticsearch
    1、创建一个新用户创建用户:useraddelastic设置密码:passwdelastic2、创建所需文件夹安装路径:mkdir/usr/local/elasticsearch日志:mkdir/usr/local/elasticsearch/esdata/log数据:mkdir/usr/local/elasticsearch/esdata/data3、安装包下载与解压下载:https://artif......
  • mac笔记本自动ssh 登录linux脚本
    #!/usr/bin/expect#settimeout30spawnsshusername@ipaddr  expect"Password:"send"$password\r"expect"Selectgroup:"send"/$172.0.0.1\r"expect"Selectaccount:"send"4\r"interact #......
  • 如何使用 GTX750 或 1050 显卡安装 CUDA11+
    前言    由于兼容性问题,使得我们若想用较新版本的PyTorch,通过GPU方式训练模型,也得更换较新版本得CUDA工具包。然而CUDA的版本又与电脑显卡的驱动程序版本关联,如果是低版本的显卡驱动程序安装CUDA11及以上肯定会失败。        比如GTX750Ti或GTX1050......
  • PyCharm安装
    PyCharm集成开发工具(IDE),是当下全球Python开发者,使用最频繁的工具软件。绝大多数的Python程序,都是在PyCharm工具内完成的开发。下载与安装的网站地址为:https://www.jetbrains.com/pycharm/download/#section=windows可以直接在搜索时输入:www.jetbrains即可。    进入......
  • Myeclipse Find Bugs 插件安装使用说明
    1.   首先关闭Myeclipse2.   下载FindBugs下载地址如下:http://downloads.sourceforge.net/project/findbugs/findbugs%20eclipse%20plugin/1.3.9/edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821.zip?use_mirror=ncu3.   ......
  • Linux安装Java环境变量及配置分配用户权限
    1wget安装yum-yinstallwget2.下载wget--no-cookies--no-check-certificate--header"Cookie:gpw_e24=http%3A%2F%2Fwww.oracle.com%2F;oraclelicense=accept-securebackup-cookie""http://download.oracle.com/otn-pub/java/jdk/8u141-b15/336fa29ff2bb......
  • redis安装教程
    转自:https://blog.csdn.net/qq_31960623/article/details/127744435https://blog.csdn.net/wang13679201813/article/details/1318292051、下载及解压https://www.runoob.com/redis/redis-install.html2、启动redis以管理员身份,打开一个cmd窗口, 切换目录到redis安装目......