Environment Setup on Mac
1. Homebrewのインストール
Open the terminal and run the following command.
brew -v
If you get an error like
command not found
, run the following command./bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Run the following command again, and if the version is displayed, it is successful. (If not displayed, restart the terminal.)
brew -v
2. Gitのインストール
Open the terminal and run the following command.
git --version
If you get an error like
command not found
, run the following command.brew install git
Enter the following command, and if the version is displayed, it is successful. (If not displayed, restart the terminal.)
git --version
3. Pythonのインストール
Open the terminal and run the following command. Also, make sure the version is 3.12 or higher.
python --version
If you get an error like
command not found
or the version is low, run the following command.brew install python
Enter the following command, and if the version is displayed, it is successful. (If not displayed, restart the terminal.)
python --version
3. OpenJDKのインストール
Open the terminal and run the following command. Also, make sure the version is 17.
java --version
If you get an error like
command not found
or the version is different, run the following command.brew install openjdk@17
Enter the following command, and if the version is displayed, it is successful. (If not displayed, restart the terminal.)
java --version