0

跑步时

rvmsudo gem install capistrano

我收到这个警告:

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 OS X 上,但我没有secure_path/etc/sudoers所以我认为我需要输入:

    export rvmsudo_secure_path=0

在我的.bash_profile,对吧?

4

1 回答 1

0

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

除了这个问题之外,是否rvmsudo有必要使用?如果您使用的是 RVM,您应该能够在没有 sudo 的情况下安装 gems(因为它们正在安装到您的主目录或用户可写系统目录中)。

于 2013-08-26T22:46:32.230 回答