RVM/rbenv veewee 安装问题

ben · 2013年02月25日 · 最后由 lgn21st 回复于 2013年03月02日 · 7541 次阅读

ruby 新手,我在尝试安装 Veewee 时,按照官网上的第一种方式安装:

$ gem install veewee
ERROR: While executing gem ... (TypeError)
instance of Date needs to have methodmarshal_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 `'
请问是什么情况?

lz 搞下排版啊。。。

应该用 markdown 排版一下你的错误日志,否则基本没有办法看。 这里的问题应该是来自 ruby-rvm 这个包,不应该用这个包来装 rvm,而是用 http://rvm.io 上面介绍的命令行来安装 rvm。

@lgn21st 你们通过什么看的帖子?我用浏览器打开看不出哪里排版有问题啊?

#5 楼 @ben 代码和 log,需要用特定的 markdown 语法来 编辑,否则基本没有可读性。 http://ruby-china.org/topics/8518

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