Installing CMake on macOS using Homebrew

Материал из Wiki - Факультет компьютерных наук
Перейти к навигации Перейти к поиску

If you already have Homebrew installed skip to step 5

Homebrew is a command line package manager of macOS.

  1. Open the “Terminal” application
  2. Paste the following string from the brew.sh website into the window and press “Return” (⮐):
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  1. You will be asked to confirm the installation and enter your administrator password for your computer

  1. After Homebrew is installed you should see the $ prompt again

  1. Install CMake by pasting the following into your command line:
brew install cmake

  1. Homebrew will now install CMake

  1. After CMake is installed you should see the $ prompt again