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)"

Installing CMake on macOS using Homebrew 1.png

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

Installing CMake on macOS using Homebrew 2.png

Installing CMake on macOS using Homebrew 3.png

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

Installing CMake on macOS using Homebrew 4.png

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

Installing CMake on macOS using Homebrew 5.png

  1. Homebrew will now install CMake

Installing CMake on macOS using Homebrew 6.png

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

Installing CMake on macOS using Homebrew 7.png