migrate error: undefined method `cache' for Gem:Module

孤者浪人 提交于 2019-12-06 03:38:09

Solution:

  1. I need ruby 1.8.7 ( i can't upgrade, its project dependent)
  2. problem at gem set, i changed gem -v 2.0 to 1.8.25 that's all

Thank you for your support

Update:

update/downgrade gemset

gem update --system 1.8.25
chibeepatag
rvm rubygems 1.8.7 --force 

worked for me.

Don Kirkby

I had a similar problem with Ruby 1.8.7 and rails 2.0.2, so I took your advice and downgraded rubygems. Here's the command to tell Ruby Version Manager to do that:

rvm install --force rubygems 1.3.7

I guess it doesn't like to downgrade, so you need to use the --force option.

Simone Carletti

You may be using a very old RubyGems version. I encourage you to upgrade RubyGems.

You should also stop using Ruby 1.8.7. It's no longer maintained. Upgrade to Ruby 1.9.3 or greater.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!