首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >rvmsudo gem安装capistrano

rvmsudo gem安装capistrano
EN

Stack Overflow用户
提问于 2013-08-27 05:15:30
回答 1查看 1.3K关注 0票数 0

运行时

代码语言:javascript
复制
rvmsudo gem install capistrano

我得到这样的警告:

代码语言:javascript
复制
Warning: can not check `/etc/sudoers` for `secure_path`, falling back to call via `/usr/bin/env`, this breaks rules from `/etc/sudoers`. Run:

    export rvmsudo_secure_path=1

to avoid the warning, put it in shell initialization file to make it persistent.

In case there is no `secure_path` in `/etc/sudoers`. Run:

    export rvmsudo_secure_path=0

to avoid the warning, put it in shell initialization file to make it persistent.

我在Mac上,在/etc/sudoers中没有secure_path,所以我假设我需要放入:

代码语言:javascript
复制
    export rvmsudo_secure_path=0

在我的.bash_profile里,对吧?

EN

回答 1

Stack Overflow用户

发布于 2013-08-27 06:46:32

是的,根据RVM警告,您的.bash_profile是放置该导出行的正确位置。

抛开这个问题不谈,使用rvmsudo有必要吗?如果您使用的是RVM,那么您应该能够在没有sudo的情况下安装gem(因为它们安装在您的主目录中,或者是用户可写的系统目录中)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18453138

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档