2017-09-26 43 views
0

我想在MacOS塞拉利昂安裝CMake安裝CMake,我跟着這裏http://mac-dev-env.patrickbougie.com/cmake/每一步,但我得到製作安裝錯誤,當試圖在Mac

make install 

我得到這個錯誤:

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

我究竟做錯了什麼?

p.s:我的系統上安裝了xcode。

+0

***我在做什麼錯?***雖然我不使用OSX,但我相信錯誤信息是正確的。 – drescherjm

+0

@drescherjm所以你知道我怎麼給它的管理權限? – ShS

+0

https://stackoverflow.com/questions/74829/how-to-run-a-script-as-root-on-mac-os-x – drescherjm

回答

1

該消息告訴你你需要做什麼,你需要管理員權限。在macOS上,這意味着您需要使用sudo命令。

sudo make install

,並在提示符下輸入管理密碼。