Macにhomebrewをインストールする全手順

1780 ワード

1.最も簡単で乱暴な方法は直接homebrewの公式サイトに行って、命令をコピーして、端末に貼って実行して、もしすべて正常であれば、下を見る必要はありません.
2.インストールプロセスが特に遅い場合は、エラーが発生します.君はそうすることができる.
まず:curl-fssLhttps://raw.githubusercontent.com/Homebrew/install/master/install >> brew_instal、このコマンドを端末にコピーし、実行します.
このコマンドを実行したら、Macの現在のディレクトリを探してbrew_があるはずです.instalのファイル.
次に、このファイルを開いてBREW_REPO = "https://github.com/Homebrew/brew「.freezeこの言葉はBREWに変更されました.REPO = "git://mirrors.ustc.edu.cn/brew.git".freeze
次に、端末で/usr/bin/ruby./brew_を実行します.Installというコマンドを使用すると、インストールプロセスが以前よりも速いことがわかりますが、最後にこのエラーが表示されます.
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
Error: Failure while executing: git clone https://github.com/Homebrew/homebrew-core/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
Error:Failure while executing:/usr/local/bin/brew tap homebrew/core第4歩:次のコマンドを実行し、ソースを置き換えます.1.cd "$(brew --repo)" 2.git remote set-url origin git://mirrors.ustc.edu.cn/brew.git 3.cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" 4.git remote set-url origin git://mirrors.ustc.edu.cn/homebrew-core.git cask ( ) cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask" git remote set-url origin git://mirrors.ustc.edu.cn/homebrew-cask.git
最後のステップ:bintrayミラーを置き換えます.1.echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile 2.source ~/.bash_profile ,Mac homebrew , brew -v, 。 , , 。