zoukankan      html  css  js  c++  java
  • Homebrew中国镜像安装与配置

    1、删除旧Homebrew

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
    

    2、下载新Homebrew安装脚本

    curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install
    

    3、编辑brew_install文件(ustc源是中国科学技术大学)

    #BREW_REPO = "https://github.com/Homebrew/brew".freeze
    BREW_REPO = "git://mirrors.ustc.edu.cn/brew.git".freeze
    

    4、替换homebrew-bottles(二进制预编译包)地址

    echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
    source ~/.bash_profile
    

    5、执行brew_install脚本

    /usr/bin/ruby ./brew_install
    

    看到如下内容即安装成功

    ==> Installation successful!
    
    ==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
    Read the analytics documentation (and how to opt-out) here:
      https://docs.brew.sh/Analytics
    No analytics data has been sent yet (or will be during this `install` run).
    
    ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
      https://github.com/Homebrew/brew#donations
    ==> Next steps:
    - Run `brew help` to get started
    - Further documentation: 
        https://docs.brew.sh
    
  • 相关阅读:
    实验三
    第六七章读后感
    0415评论
    0414-复利计算
    实验8 201306114104彭得源
    实验7 201306114104彭得源
    实验6 201306114104彭得源
    android实验五201306114104彭得源
    android实验四201306114104彭得源
    实验五 04彭得源
  • 原文地址:https://www.cnblogs.com/pingyeaa/p/12381355.html
Copyright © 2011-2022 走看看