首页 > 其他分享 >Homebrew

Homebrew

时间:2023-06-24 09:45:20浏览次数:21  
标签:cn mirrors ustc https edu brew Homebrew

Installation

# Docs: https://mirrors.ustc.edu.cn/help/brew.git.html#homebrew-linuxbrew
sudo apt-get install --no-install-recommends --yes git build-essential
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"
export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api"

/bin/bash -c "$(curl -fsSL https://mirrors.ustc.edu.cn/misc/brew-install.sh)"
==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
    (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/justin/.profile
    eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
- Run these commands in your terminal to add the non-default Git remotes for Homebrew/brew and Homebrew/homebrew-core:
    echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /home/justin/.profile
    echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"' >> /home/justin/.profile
    echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"' >> /home/justin/.profile
    export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
    export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"
- Install Homebrew's dependencies if you have sudo access:
    sudo apt-get install build-essential
  For more information, see:
    https://docs.brew.sh/Homebrew-on-Linux
- We recommend that you install GCC:
    brew install gcc
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

标签:cn,mirrors,ustc,https,edu,brew,Homebrew
From: https://www.cnblogs.com/newhappy98/p/17392682.html

相关文章

  • Homebrew游戏和独立游戏的区别
    Homebrew游戏和独立游戏是游戏开发领域中的两个概念,它们之间存在一些区别。开发者身份:Homebrew游戏通常由游戏玩家或游戏爱好者开发,他们使用自己的技能和资源制作游戏,通常是为了个人乐趣或共享给其他玩家。独立游戏则是由专业的独立游戏开发者或小型游戏开发团队制作,他们追求商业......
  • Updating Homebrew... 长时间不动解决方法
    UpdatingHomebrew...长时间不动解决方法在配置开发环境时遇到了问题。执行:$brewinstallwatchman,在安装watchman的时候卡在(updatinghomebrew...)不动,开始以为是网络问题,后来不甘心还是网上找找解决方案,结果还是找到了。确保你已安装Homebrew依次输入下面的命令(注意:不要管重置部......
  • Mac系统重新安装Homebrew解决方法
    Mac系统重新安装Homebrew删除Homebrewsudorm-rfCellarFrameworksHomebrew安装Homebrew/bin/zsh-c"$(curl-fsSLhttps://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"需要确认是输入Y回车输入序号选择源,比如1是中科大source~/.bash_profile重新加载......
  • homebrew 安装报错 Warning: /opt/homebrew/bin is not in your PATH.
    如下报错解决方案编辑 zshrcvim~/.zshrc配置如下  exportPATH="/opt/homebrew/bin:$PATH"  ......
  • 如何使用brew(Homebrew)
    #brew安装,如果安装速度慢或者被墙,可自行网上找镜像链接安装/bin/bash-c"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install.sh)"#常用命令brew-v#查看brew版本号brewinstallxxx#安装包brewsearchxxx#搜索包brewinfoxxx#......
  • mac更换homebrew
    在mac系统中,使用homebrew可以很方便的管理包。按照官网的说明执行以下命令时总是报错: /usr/bin/ruby-e"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"应该是这个资源访问有问题,那么我们可以尝试使用国内的镜像。给大家推荐一个中科院的镜......
  • homebrew 无法从 API 更新错误问题
    今天中午吃饭前,想看看有没有更新,于是打开终端模拟器(我用的是WezTerm),brewupdate,结果更新出了点问题大致情况就是我不能从API更新,这个特性是从homebrew进入4.0大版本才出现的,我也遵循了默认设置。然而在今天,它出错了。我以为是路由配的节点挂了,然后随手ping了一下上面......
  • macOS系统中homebrew的作用
    1.Homebrew是一款MacOS平台下的软件包管理工具,拥有安装、卸载、更新、查看、搜索等很多实用的功能。简单的一条指令,就可以实现包管理,而不用你关心各种依赖和文件路径的情况,十分方便快捷。安装Homebrew的方法链接:https://brew.idayer.comhttps://zhuanlan.zhihu.com/p/9050817......
  • MacOS下用homebrew装完NodeJS能找到node命令找不到npm命令
    1安装命令brewinstallnode之后,能找到node命令,找不到npm命令2版本太高导致,自己换成其他版本先卸载brewuninstallnode 搜索低版本  brewsearchnode然后挑一个版本brewinstallnode@16 之后重新添加环境变量,看是否有相关提示echo'export......
  • 通过 Homebrew 在 Mac OS X 上安装和配置 Redis
    通过使用Homebrew,可以大大降低在MacOSX上设置和配置开发环境的成本。让我们安装Redis。$brewinstallredis安装后,我们将看到一些有关配置注意事项的通知。离开它并继续关注本文中的一些任务。开机自启动Redis$ln-sfv/usr/local/Cellar/redis/7.0.10/*.plist......