嘗試使用rvm安裝rails3時,出現以下錯誤。無法在rvm上安裝rails3
$ gem install rails
/data/home/manish/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:28:in `<top (required)>': uninitialized constant Gem::ConfigFile (NameError)
from /data/home/manish/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /data/home/manish/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /data/home/manish/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:8:in `<top (required)>'
from /data/home/manish/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /data/home/manish/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /data/home/manish//.rvm/rubies/ruby-1.9.2-p180/bin/gem:9:in `<main>'
這裏是我的RVM信息
$ rvm info
ruby-1.9.2-p180:
system:
uname: "Linux alioth-linux.gslab.com 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686 i686 i386 GNU/Linux"
bash: "/bin/bash => GNU bash, version 3.2.25(1)-release (i386-redhat-linux-gnu)"
zsh: "/bin/zsh => zsh 4.3.4 (i386-redhat-linux-gnu)"
rvm:
version: "rvm 1.6.2 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/]"
ruby:
interpreter: "ruby"
version: "1.9.2p180"
date: "2011-02-18"
platform: "i686-linux"
patchlevel: "2011-02-18 revision 30909"
full_version: "ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]"
homes:
gem: "/data/home/manish//.rvm/gems/ruby-1.9.2-p180"
ruby: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180"
binaries:
ruby: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180/bin/ruby"
irb: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180/bin/irb"
gem: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180/bin/gem"
rake: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180/bin/rake"
environment:
PATH: "/data/home/manish//.rvm/gems/ruby-1.9.2-p180/bin:/data/home/manish//.rvm/gems/[email protected]/bin:/data/home/manish//.rvm/rubies/ruby-1.9.2-p180/bin:/data/home/manish//.rvm/bin:/data/home/manish/ec2-api-tools-1.4.0.2/bin:/data/data/work/java/jdk1.6.0_18/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/bin:/usr/bin:/data/home/manish//bin"
GEM_HOME: "/data/home/manish//.rvm/gems/ruby-1.9.2-p180"
GEM_PATH: "/data/home/manish//.rvm/gems/ruby-1.9.2-p180:/data/home/manish//.rvm/gems/[email protected]"
MY_RUBY_HOME: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180"
IRBRC: "/data/home/manish//.rvm/rubies/ruby-1.9.2-p180/.irbrc"
RUBYOPT: ""
gemset: ""
感謝您的幫助。
問候,
馬尼什
有同樣的問題! – 2011-04-30 19:02:59
任何「寶石」命令會顯示「未初始化的常數寶石::通過ConfigFile(NameError)」的錯誤.. 甚至試圖重新安裝或更改版本「RVM的RubyGems 1.3.7」 - 沒有任何影響。 – 2011-04-30 19:11:14