homebrewのセットアップ
インストール
下記のコマンドを実行していく
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"実行すると下記のようなメッセージが返ってくる
==> Next steps:- Run these two commands in your terminal to add Homebrew to your PATH: (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/ubuntu/.profile eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"- Install Homebrew's dependencies if you have sudo access: sudo apt-get install build-essential For more information, see: https://docs.brew.sh/Homebrew-on-Linux- We recommend that you install GCC: brew install gcc- Run brew help to get started- Further documentation: https://docs.brew.sh書いてある内容に従って、下記のコマンドを実行する
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/ubuntu/.profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
sudo apt-get install -y build-essential
brew install gccいい感じのレスポンスが返ってきたら完成