运行时
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上,在/etc/sudoers中没有secure_path,所以我假设我需要放入:
export rvmsudo_secure_path=0在我的.bash_profile里,对吧?
发布于 2013-08-27 06:46:32
是的,根据RVM警告,您的.bash_profile是放置该导出行的正确位置。
抛开这个问题不谈,使用rvmsudo有必要吗?如果您使用的是RVM,那么您应该能够在没有sudo的情况下安装gem(因为它们安装在您的主目录中,或者是用户可写的系统目录中)。
https://stackoverflow.com/questions/18453138
复制相似问题