Reputation: 129
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
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