Environment Setup on Mac#

1. Homebrewのインストール#

  1. Open a terminal and run the following command.

    brew -v
    
  2. If 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)"
    
  3. 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のインストール#

  1. Open a terminal and run the following command.

    git --version
    
  2. If you get an error such as command not found, run the following command.

    brew install git
    
  3. 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のインストール#

  1. Open a terminal and run the following command. Also make sure the version is 3.13 or later.

    python --version
    
  2. If you get an error such as command not found or the version is too low, run the following command.

    brew install python
    
  3. 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のインストール#

  1. Open a terminal and run the following command. Also make sure the version is 21.

    java --version
    
  2. If you get an error such as command not found or the version is different, run the following command.

    brew install openjdk@21
    
  3. 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のインストール#

  1. Open a terminal and run the following command. Also make sure the version is 21.

    java --version
    
  2. If you get an error such as command not found or the version is different, run the following command.

    brew install openjdk@21
    
  3. Enter the following command. If the version is displayed, the installation was successful. (If it does not appear, restart the terminal.)

    java --version