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

主頁 > 知識庫 > Mac M1安裝Homebrew的方法步驟

Mac M1安裝Homebrew的方法步驟

熱門標簽:400電話辦理費用低 鶴壁高頻外呼系統多少錢一個月 谷歌地圖標注日期 聯通外呼系統電腦app軟件 蘇州呼叫中心外呼系統哪家強 宿遷怎么辦理400電話 400電話申請到底哪家好 外呼系統怎么群發短信 地圖標注項目幾個月

最常用命令

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

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

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

錯誤解決

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

解決方法:

打開 www.ipaddress.com 網站查詢 raw.githubusercontent.com 主機的真實IP

打開 /etc/hosts 文件,增加一條記錄

185.199.108.133  raw.githubusercontent.com 

問題2 :如果 brew install 出以下錯誤, 則安裝時使用 arch -arm64 brew install 軟件包名 進行安裝

創建安裝目錄

Homebrew 安裝腳本會將程序默認裝至 /usr/local/Homebrew ,這是 Intel 芯片架構上的安裝路徑,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

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

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

將路徑增加到PATH環境變量中

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

清華大學鏡像:
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

終于可以進行下載軟件了

brew install -s 軟件包名

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

您可能感興趣的文章:
  • Mac M1安裝mnmp(Mac+Nginx+MySQL+PHP)開發環境
  • Macbook air m1安裝python/anaconda全過程(圖文)
  • 本地Docker安裝Postgres 12 + pgadmin的方法 (支持Apple M1)
  • 2020Mac M1安裝jdk和IDEA的詳細方法
  • M1芯片安裝mysql8.0數據庫的實現步驟(圖文)
  • M1芯片安裝python3.9.1的實現

標簽:襄陽 雙鴨山 莆田 丹東 遵義 鄂爾多斯 哈爾濱 錫林郭勒盟

巨人網絡通訊聲明:本文標題《Mac M1安裝Homebrew的方法步驟》,本文關鍵詞  Mac,安裝,Homebrew,的,方法,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《Mac M1安裝Homebrew的方法步驟》相關的同類信息!
  • 本頁收集關于Mac M1安裝Homebrew的方法步驟的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 正定县| 神木县| 芦山县| 忻城县| 荃湾区| 石泉县| 淳安县| 天峨县| 马边| 白沙| 江都市| 双城市| 景德镇市| 凤山市| 社旗县| 闵行区| 宿松县| 庄浪县| 晋中市| 舟山市| 崇明县| 安康市| 花莲市| 怀化市| 久治县| 永平县| 汉寿县| 肥西县| 炉霍县| 津市市| 曲阜市| 黄浦区| 绵阳市| 松原市| 昌吉市| 浑源县| 澳门| 宝鸡市| 都江堰市| 若羌县| 得荣县|