简体   繁体   中英

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?

ps: I have xcode installed on my system.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM