ruby 新手,我在尝试安装 Veewee 时,按照官网上的第一种方式安装:
$ gem install veewee
ERROR: While executing gem ... (TypeError)
instance of Date needs to have method
marshal_load'`
上网谷歌了一下看到说是 ruby 问题:
$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
使用 RVM 安装 ruby:
$rvm install 1.9.3-p392
结果报错:
Installing rubygems for /usr/share/ruby-rvm/rubies/ruby-1.9.3-p392/bin/ruby
ERROR: Error running 'GEM_PATH="/usr/share/ruby-rvm/gems/ruby-1.9.3-p392:/usr/share/ruby-rvm/gems/ruby-1.9.3-p392@global:/usr/share/ruby-rvm/gems/ruby-1.9.3-p392:/usr/share/ruby-rvm/gems/ruby-1.9.3-p392@global" GEM_HOME="/usr/share/ruby-rvm/gems/ruby-1.9.3-p392" "/usr/share/ruby-rvm/rubies/ruby-1.9.3-p392/bin/ruby" "/usr/share/ruby-rvm/src/rubygems-1.6.2/setup.rb"', please read /usr/share/ruby-rvm/log/ruby-1.9.3-p392/rubygems.install.log
WARN: Installation of rubygems did not complete successfully.
日志文件:
$ cat /usr/share/ruby-rvm/log/ruby-1.9.3-p392/rubygems.install.log
[2013-02-25 09:58:14] GEM_PATH="/usr/share/ruby-rvm/gems/ruby-1.9.3-p392:/usr/share/ruby-rvm/gems/ruby-1.9.3-p392@global:/usr/share/ruby-rvm/gems/ruby-1.9.3-p392:/usr/share/ruby-rvm/gems/ruby-1.9.3-p392@global" GEM_HOME="/usr/share/ruby-rvm/gems/ruby-1.9.3-p392" "/usr/share/ruby-rvm/rubies/ruby-1.9.3-p392/bin/ruby" "/usr/share/ruby-rvm/src/rubygems-1.6.2/setup.rb"
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/rubygems.rb:483:in find_files': undefined methodmap' for Gem::Specification:Class (NoMethodError)
from /usr/share/ruby-rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/rubygems.rb:1108:in load_plugins'
from /var/cache/ruby-rvm/src/rubygems-1.6.2/lib/rubygems/gem_runner.rb:84:in'
from /usr/share/ruby-rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /usr/share/ruby-rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from /usr/share/ruby-rvm/src/rubygems-1.6.2/setup.rb:25:in `'
请问是什么情况?