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.