安装Ruby 1.9.3时出错

安装Ruby 1.9.3时出错,ruby,ubuntu,rvm,ruby-1.9.3,Ruby,Ubuntu,Rvm,Ruby 1.9.3,我在通过rvm安装Ruby 1.9.3时出错 rvm install 1.9.3-p0 Installing Ruby from source to: /home/alder/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)... ruby-1.9.3-p0 - #fetching ruby-1.9.3-p0 - #downloading ruby-1.9.3-p0, this may take

我在通过rvm安装Ruby 1.9.3时出错

rvm install 1.9.3-p0
Installing Ruby from source to: /home/alder/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...

ruby-1.9.3-p0 - #fetching 
ruby-1.9.3-p0 - #downloading ruby-1.9.3-p0, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0^[[B^[[B^[[B^[[B^[[B^[[B^[100 9330k  100 9330k    0     0   112k      0  0:01:23  0:01:23 --:--:-- 64618
ruby-1.9.3-p0 - #extracting ruby-1.9.3-p0 to /home/alder/.rvm/src/ruby-1.9.3-p0
ruby-1.9.3-p0 - #extracted to /home/alder/.rvm/src/ruby-1.9.3-p0
Fetching yaml-0.1.3.tar.gz to /home/alder/.rvm/archives
Extracting yaml-0.1.3.tar.gz to /home/alder/.rvm/src
Configuring yaml in /home/alder/.rvm/src/yaml-0.1.3.
Compiling yaml in /home/alder/.rvm/src/yaml-0.1.3.
Installing yaml to /home/alder/.rvm/usr
ruby-1.9.3-p0 - #configuring 
ruby-1.9.3-p0 - #compiling 
ruby-1.9.3-p0 - #installing 
Removing old Rubygems files...
-e:1: Use RbConfig instead of obsolete and deprecated Config.
Installing rubygems dedicated to ruby-1.9.3-p0...
Installing rubygems for /home/alder/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
ERROR: Error running 'GEM_PATH="/home/alder/.rvm/gems/ruby-1.9.3-p0:/home/alder/.rvm/gems/ruby-1.9.3-p0@global:/home/alder/.rvm/gems/ruby-1.9.3-p0:/home/alder/.rvm/gems/ruby-1.9.3-p0@global" GEM_HOME="/home/alder/.rvm/gems/ruby-1.9.3-p0" "/home/alder/.rvm/rubies/ruby-1.9.3-p0/bin/ruby" "/home/alder/.rvm/src/rubygems-1.6.2/setup.rb"', please read /home/alder/.rvm/log/ruby-1.9.3-p0/rubygems.install.log             
WARN: Installation of rubygems did not complete successfully.
ruby-1.9.3-p0 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p0 - #importing default gemsets (/home/alder/.rvm/gemsets/)
Install of ruby-1.9.3-p0 - #complete
日志文件:

[2011-11-01 17:57:51] GEM_PATH="/home/alder/.rvm/gems/ruby-1.9.3-p0:/home/alder/.rvm/gems/ruby-1.9.3-p0@global:/home/alder/.rvm/gems/ruby-1.9.3-p0:/home/alder/.rvm/gems/ruby-1.9.3-p0@global" GEM_HOME="/home/alder/.rvm/gems/ruby-1.9.3-p0" "/home/alder/.rvm/rubies/ruby-1.9.3-p0/bin/ruby" "/home/alder/.rvm/src/rubygems-1.6.2/setup.rb"
/home/alder/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rubygems.rb:480:in `find_files': undefined method `map' for Gem::Specification:Class (NoMethodError)
    from /home/alder/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rubygems.rb:1087:in `load_plugins'
    from /home/alder/.rvm/src/rubygems-1.6.2/lib/rubygems/gem_runner.rb:84:in `<top (required)>'
    from /home/alder/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/alder/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/alder/.rvm/src/rubygems-1.6.2/setup.rb:25:in `<main>'
[2011-11-01 17:57:51]GEM_PATH=“/home/alder/.rvm/gems/ruby-1.9.3-p0:/home/alder/.rvm/gems/ruby-1.9.3-p0-p0@global:/home/alder/.rvm/gems/ruby-1.9.3-p0:/home/alder/.rvm/gems/ruby-1.9.3-p0@global“GEM_HOME=“/HOME/alder/.rvm/gems/ruby-1.9.3-p0”“/HOME/alder/.rvm/rubies/ruby-1.9.3-p0/bin/ruby”“/HOME/alder/.rvm/src/rubygems-1.6.2/setup.rb”
/home/alder/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rubygems.rb:480:在“find_文件”中:Gem的未定义方法“map”:规范:类(NoMethodError)
from/home/alder/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rubygems.rb:1087:in'load_plugins'
from/home/alder/.rvm/src/rubygems-1.6.2/lib/rubygems/gem_runner.rb:84:in`'
from/home/alder/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in'require'
from/home/alder/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in'require'
from/home/alder/.rvm/src/rubygems-1.6.2/setup.rb:25:in`'

在此之前,我成功地安装了新的ruby版本。我在谷歌上发现了这样的错误,但没有找到这个问题的答案。而且rails服务器无法启动。

我不明白为什么在使用
gem update--system
更新到RubyGems 1.8.11之后,同样的安装程序错误击中了我,它仍然在
$RVM_HOME/src/RubyGems-1.6.2/

更新1:我已经有一段时间没有尝试
rvm获取最新版本了。所以我试着用它来缓解我的问题。这给了我一个被拒绝的
权限
,因为它试图在
/tmp
下运行脚本。在我的
/etc/fstab
中,
/tmp
作为
noexec
安装。当我解决这个问题时,我将看看安装Ruby 1.9.3是否能更好地工作

更新2:发布
mount-oremount,exec/tmp
让我最终安装Ruby 1.9.3。

我必须升级RVM

rvm get head
rvm reload
rvm install 1.9.3-p194
rvm use 1.9.3

如果1.9.3-p194不是最新版本(截至2012年7月6日),请转至了解最新版本

您正在使用当前版本的Rubygems吗<代码>gem更新--系统
应该把它拉下来安装。我这样做,重新启动comp,它就可以工作了!你需要更新你的Rubygemshave你启动了一个新的终端进程吗?我注销了,关闭了我的交互式SSH术语,并创建了一个新的。如果你已经尝试安装1.9.3,你需要运行
rvm重新安装1.9.3-p194
而不是
rvm安装1.9.3-p194
谢谢<代码>rvm获取头部成功。仅供参考,如果需要,您可以关闭修补程序级别,只需运行
rvm install 1.9.3
即可获得最新版本。