Environment Setup on Mac#
1. Homebrewのインストール#
Open a terminal and run the following command.
brew -vIf you get an error such as
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. If the version is displayed, the installation was successful. (If it does not appear, restart the terminal.)
brew -v
2. Gitのインストール#
Open a terminal and run the following command.
git --versionIf you get an error such as
command not found, run the following command.brew install git
Enter the following command. If the version is displayed, the installation was successful. (If it does not appear, restart the terminal.)
git --version
3. Pythonのインストール#
Open a terminal and run the following command. Also make sure the version is 3.13 or later.
python --versionIf you get an error such as
command not foundor the version is too low, run the following command.brew install python
Enter the following command. If the version is displayed, the installation was successful. (If it does not appear, restart the terminal.)
python --version
3. OpenJDKのインストール#
Open a terminal and run the following command. Also make sure the version is 21.
java --versionIf you get an error such as
command not foundor the version is different, run the following command.brew install openjdk@21
Enter the following command. If the version is displayed, the installation was successful. (If it does not appear, restart the terminal.)
java --version
3. OpenJDKのインストール#
Open a terminal and run the following command. Also make sure the version is 21.
java --versionIf you get an error such as
command not foundor the version is different, run the following command.brew install openjdk@21
Enter the following command. If the version is displayed, the installation was successful. (If it does not appear, restart the terminal.)
java --version