婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁(yè) > 知識(shí)庫(kù) > Mac M1安裝Homebrew的方法步驟

Mac M1安裝Homebrew的方法步驟

熱門標(biāo)簽:400電話辦理費(fèi)用低 鶴壁高頻外呼系統(tǒng)多少錢一個(gè)月 谷歌地圖標(biāo)注日期 聯(lián)通外呼系統(tǒng)電腦app軟件 蘇州呼叫中心外呼系統(tǒng)哪家強(qiáng) 宿遷怎么辦理400電話 400電話申請(qǐng)到底哪家好 外呼系統(tǒng)怎么群發(fā)短信 地圖標(biāo)注項(xiàng)目幾個(gè)月

最常用命令

搜索軟件: brew search 軟件包名稱

安裝軟件: brew install 軟件包名稱

卸載軟件: brew uninstall 軟件包名稱

錯(cuò)誤解決

問(wèn)題1 : curl: (7) Failed to connect to http://raw.githubusercontent.com port 443: Connection refused” 錯(cuò)誤

解決方法:

打開(kāi) www.ipaddress.com 網(wǎng)站查詢 raw.githubusercontent.com 主機(jī)的真實(shí)IP

打開(kāi) /etc/hosts 文件,增加一條記錄

185.199.108.133  raw.githubusercontent.com 

問(wèn)題2 :如果 brew install 出以下錯(cuò)誤, 則安裝時(shí)使用 arch -arm64 brew install 軟件包名 進(jìn)行安裝

創(chuàng)建安裝目錄

Homebrew 安裝腳本會(huì)將程序默認(rèn)裝至 /usr/local/Homebrew ,這是 Intel 芯片架構(gòu)上的安裝路徑,M1芯片上則需要安裝到 /opt/Homebrew/ 下。

sudo mkdir -p /opt/homebrew
sudo chown -R $(whoami) /opt/homebrew

下載 homebrew 包并解壓至 /opt/homebrew 目錄

curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew

如果下載慢,可以直接通過(guò) https://github.com/Homebrew/brew/tarball/master 或本地下載,copy 到 /opt 目錄下再將壓縮包解壓到 /opt/homebrew 目錄

cp /opt
tar xz 壓縮包名 --strip 1 -C homebrew

將路徑增加到PATH環(huán)境變量中

vim ~/.bash_profile
#在 .bash_profile 中新增
export PATH=$PATH:/opt/homebrew/bin;
#保存退出
#刷新生效
source ~/.bash_profile

修改源

cd "$(brew --repo)"
git clone https://mirrors.ustc.edu.cn/brew.git
 
 
cd "$(brew --repo)/Library/Taps/homebrew"
 
git clone https://mirrors.ustc.edu.cn/homebrew-core.git
 
git clone https://mirrors.ustc.edu.cn/homebrew-cask.git
 
brew update #更新

其它鏡像地址:

HomeBrew 官方鏡像:
brew: https://github.com/Homebrew/brew
core: https://github.com/Homebrew/homebrew-core
cask: https://github.com/Homebrew/homebrew-cask

清華大學(xué)鏡像:
brew: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
core: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
cask: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git

中科大鏡像:
brew: https://mirrors.ustc.edu.cn/brew.git
core: https://mirrors.ustc.edu.cn/homebrew-core.git
cask: https://mirrors.ustc.edu.cn/homebrew-cask.git

終于可以進(jìn)行下載軟件了

brew install -s 軟件包名

到此這篇關(guān)于Mac M1安裝Homebrew的方法步驟的文章就介紹到這了,更多相關(guān)M1安裝Homebrew內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

您可能感興趣的文章:
  • Mac M1安裝mnmp(Mac+Nginx+MySQL+PHP)開(kāi)發(fā)環(huán)境
  • Macbook air m1安裝python/anaconda全過(guò)程(圖文)
  • 本地Docker安裝Postgres 12 + pgadmin的方法 (支持Apple M1)
  • 2020Mac M1安裝jdk和IDEA的詳細(xì)方法
  • M1芯片安裝mysql8.0數(shù)據(jù)庫(kù)的實(shí)現(xiàn)步驟(圖文)
  • M1芯片安裝python3.9.1的實(shí)現(xiàn)

標(biāo)簽:襄陽(yáng) 雙鴨山 莆田 丹東 遵義 鄂爾多斯 哈爾濱 錫林郭勒盟

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Mac M1安裝Homebrew的方法步驟》,本文關(guān)鍵詞  Mac,安裝,Homebrew,的,方法,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Mac M1安裝Homebrew的方法步驟》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于Mac M1安裝Homebrew的方法步驟的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 荆州市| 惠水县| 巴彦淖尔市| 高唐县| 聂拉木县| 临清市| 永清县| 惠州市| 武冈市| 独山县| 平原县| 赫章县| 新建县| 天门市| 当雄县| 新源县| 梁平县| 临泽县| 赤峰市| 包头市| 清河县| 利津县| 惠安县| 台安县| 泾川县| 景泰县| 都兰县| 尼木县| 建平县| 铁力市| 泾源县| 山东省| 宜君县| 长葛市| 汕头市| 寻甸| 敦煌市| 军事| 库车县| 韶关市| 青州市|