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

linsk · December 12, 2011 · Last by ericguo replied at June 22, 2013 · 3251 hits

~/.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 文件夹

You need to Sign in before reply, if you don't have an account, please Sign up first.