ShS
ShS

Reputation: 129

Make Install Error, when trying to install Cmake on mac

I am trying to install Cmake on macOS Sierra, and I followed every step here http://mac-dev-env.patrickbougie.com/cmake/, but as I get to

make install 

I get this error:

-- Install configuration: "" CMake Error at cmake_install.cmake:31 (file): file cannot create directory: /usr/local/mac-dev-env/cmake-3.9.2/doc/cmake-3.9. Maybe need administrative privileges.

make: *** [install] Error 1

what am I doing wrong?

p.s: I have xcode installed on my system.

Upvotes: 1

Views: 3833

Answers (1)

Cinder Biscuits
Cinder Biscuits

Reputation: 5241

The message tells you what you need to do, you need admin privileges. On macOS, that means you need to utilize the sudo command.

sudo make install

and enter your administrative password at the prompt.

Upvotes: 3

Related Questions