RVM/rbenv 之前用 RVM 安装的 ror 环境,.gemrc 在什么位置?

linsk · 2011年12月12日 · 最后由 ericguo 回复于 2013年06月22日 · 3252 次阅读

~/.gemrc 找不到。现在需要编辑它。

... 求助

https://rvm.beginrescueend.com/gemsets/basics/

If you are deploying to a server, or you do not want to wait around for rdoc and ri to install for each gem, you can disable them for gem installs and updates. Just add these two lines to your ~/.gemrc or /etc/gemrc:

install: --no-rdoc --no-ri update: --no-rdoc --no-ri

不知道这个能不能帮到你!

root@machine1:~# irb
1.9.3-p392 :001 > require 'etc'
 => true
1.9.3-p392 :002 > Etc.sysconfdir
 => "/usr/local/rvm/rubies/ruby-1.9.3-p392/etc"

所以放gemrc 到 etc 文件夹

需要 登录 后方可回复, 如果你还没有账号请 注册新账号