This repository show step to install and add Brew to path to make it can be used in any operating system.
- Windows (WSL)
- macOS
- Linux
Important
In Windows, you have to Install WSL and type every command in WSL to install brew.
Type these commands in your shell.
sudo apt update && sudo apt upgrade
sudo apt-get install git
Copy and paste this command into your terminal.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Important (for Windows (WSL) and Linux only)
Don't close terminal or type any command after install brew for 2.
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/$USER/.profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
sudo apt-get install build-essential
brew install gcc