站長資訊網(wǎng)
        最全最豐富的資訊網(wǎng)站

        一招教你怎么使用mac 安裝配置 homebrew(代碼分享)

        之前的文章《淺析JS中base64和圖片互相轉(zhuǎn)換(附代碼)》中,給大家了解了JS中base64和圖片互相轉(zhuǎn)換。下面本篇文章給大家介紹怎么使用mac安裝配置homebrew,我們一起看看怎么做。

        一招教你怎么使用mac 安裝配置 homebrew(代碼分享)

        最近換電腦了,發(fā)現(xiàn)homebrew安裝不上了,我感覺是網(wǎng)絡(luò)問題,連了個vpn,發(fā)現(xiàn)還是不行,哈哈,是姿勢不對

        安裝

        運(yùn)行下面自動腳本(已經(jīng)全部替換為國內(nèi)地址):

        (Mac)常規(guī)安裝腳本(推薦完全體幾分鐘安裝完成)

        /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

        (Mac)精簡版幾秒鐘安裝完成

        /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" speed

        (Mac)卸載腳本

        /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"

        (Linux)安裝腳本:

        rm Homebrew.sh ; wget https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh ; bash Homebrew.sh

        (Linux)卸載腳本:

        rm HomebrewUninstall.sh ; wget https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh ; bash HomebrewUninstall.sh

        安裝問題

        如果發(fā)現(xiàn)有各種安裝不上的運(yùn)行:

        sudo rm -rf /usr/local/Homebrew

        提示系統(tǒng)太舊的 (Failed to install Homebrew Portable Ruby (and your system version is too old)!) 運(yùn)行:

        HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles-portable-ruby  rm -rf /Users/$(whoami)/Library/Caches/Homebrew/  brew update

        切換鏡像源

        阿里云homebrew

        配置方法:[https://developer.aliyun.com/mirror/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 # 應(yīng)用生效 brew update # 替換homebrew-bottles: echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.bash_profile source ~/.bash_profile

        騰訊云homebrew

        配置方法:Homebrew鏡像使用幫助

        [https://mirrors.cloud.tencent.com/help/homebrew.html]。

        cd "$(brew --repo)" git remote set-url origin http://mirrors.cloud.tencent.com/git/homebrew/brew.git  cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin http://mirrors.cloud.tencent.com/git/homebrew/homebrew-core.git  brew update

        配置方法:Homebrew-bottles鏡像使用幫助

        [https://mirrors.cloud.tencent.com/help/homebrew-bottles.html]。

        echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.cloud.tencent.com/homebrew-bottles' >> ~/.bash_profile source ~/.bash_profile

        中科大homebrew

        配置方法:Homebrew源使用幫助[http://mirrors.ustc.edu.cn/help/brew.git.html]。

        cd "$(brew --repo)" git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

        配置方法:Homebrew Core源使用幫助[http://mirrors.ustc.edu.cn/help/homebrew-core.git.html]。

        cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

        配置方法:Homebrew Bottles源使用幫助[http://mirrors.ustc.edu.cn/help/homebrew-bottles.html]。

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

        推薦學(xué)習(xí):MacOS教程

        贊(0)
        分享到: 更多 (0)
        網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號
        主站蜘蛛池模板: 国模精品一区二区三区| 国产天天综合永久精品日| 五月花精品视频在线观看| 日韩精品一区二区午夜成人版| 日韩精品国产自在久久现线拍| 四虎成人精品无码| 精品欧美一区二区在线观看| 亚洲精品福利视频| 国产色婷婷五月精品综合在线| 影院无码人妻精品一区二区| 精品欧美一区二区在线观看| 99久久www免费人成精品| 91老司机深夜福利精品视频在线观看| 中文字幕在线精品视频入口一区 | 久久人搡人人玩人妻精品首页| 奇米精品一区二区三区在线观看 | 国内精品久久久久影院优| 中文字幕精品无码久久久久久3D日动漫| 国产亚洲曝欧美不卡精品| 99热成人精品国产免男男| 免费精品99久久国产综合精品| 99久久精品费精品国产一区二区 | 日韩精品乱码AV一区二区| 亚洲麻豆精品国偷自产在线91| 欧美日韩专区麻豆精品在线| 久久久91人妻无码精品蜜桃HD| 精品国产一区二区三区久久蜜臀 | 8AV国产精品爽爽ⅴa在线观看| 精品无人区一区二区三区| 久久夜色精品国产噜噜亚洲AV| 青青草原精品99久久精品66| 人人妻人人澡人人爽人人精品| 日韩精品久久久久久免费| 少妇人妻无码精品视频app| 亚洲国产精品无码久久| 亚洲av午夜福利精品一区| 亚洲一区爱区精品无码| 亚洲av无码精品网站| 久久青青草原精品国产| 精品永久久福利一区二区| 国产精品丝袜一区二区三区|