企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 安装`brew` ``` $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" #yuan $ /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" # 镜像 ``` ## gengxin ``` 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 if [ $SHELL = "/bin/bash" ] # 如果你的是bash then echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/' >> ~/.bash_profile source ~/.bash_profile elif [ $SHELL = "/bin/zsh" ] # 如果用的shell 是zsh 的话 then echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/' >> ~/.zshrc source ~/.zshrc fi brew update ``` ### 安装sockit ``` $ brew install sokit $ brew tap rangaofei/saka ``` ### 安装 gcc@4.9 执行命令: ``` $ brew install gcc@4.9 ``` 在~/.bash_profile中加入一下内容: ``` alias gcc="gcc-4.9" alias g++="g++-4.9" alias cc="gcc-4.9" alias c++="c++-4.9" ``` 执行命令: ``` $ source ~/.bash_profile ``` ### 更换brew源 使用以下命令更换国内阿里云上的homebrew镜像: ``` # 替换brew.git: cd "$(brew --repo)" git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git # 替换homebrew-core.git: cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git # 替换homebrew-bottles: echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.bash_profile source ~/.bash_profile # 替换homebrew-cask.git: cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git ```