尝试在Mac上安装Cmake时出现安装错误 [英] Make Install Error, when trying to install Cmake on mac

查看:571
本文介绍了尝试在Mac上安装Cmake时出现安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在macOS Sierra上安装Cmake,我在这里遵循了每个步骤 http://mac-dev-env.patrickbougie.com/cmake/,但随着我的了解

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 

我收到此错误:

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

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

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

推荐答案

该消息告诉您您需要执行的操作,需要管理员权限.在macOS上,这意味着您需要使用sudo命令.

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.

这篇关于尝试在Mac上安装Cmake时出现安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆