Rails 3.0 & Ruby 1.9.2rc: Rake commands return 'already initialized constant' & stack level too deep errors. Any ideas

前端 未结 13 1987
天涯浪人
天涯浪人 2020-12-08 07:19

I\'m trying to run Rails 3 beta 4 & Ruby 1.9.2rc on Ubuntu 10.04. It worked initially, but after doing my first bundle install/package, I now get the following errors in

相关标签:
13条回答
  • 2020-12-08 08:14

    bundle exec bash works for me

    0 讨论(0)
  • 2020-12-08 08:17

    Looks like a strange recursive require.

    Did you try uninstalling all versions of rake and reinstalling it? There is a bug in 1.9.2rc affecting gem loading, so that might be it? I didn't look closely into it as many people are already following it closely...

    Note: The 1.9.1 is the API version, so it is correct.

    0 讨论(0)
  • 2020-12-08 08:20

    I had a .bundler folder on my root directory which was conflicting. Removing it did it for me.

    rm -rf ~/.bundler
    
    0 讨论(0)
  • 2020-12-08 08:21

    I'm afraid the easier solution is running this command instead of rake db:migrate

    bundle exec rake db:migrate
    
    0 讨论(0)
  • 2020-12-08 08:21

    If you have RVM installed, this issue can start to occur once you update rubygems to 1.8.15. The issue was that I had rake installed in the global gemset and my project's gemset. The solution was to have only one installation of rake. To delete it from the project gemset: 1. cd to the project 2. gem uninstall rake

    0 讨论(0)
  • 2020-12-08 08:23

    Update to latest Rails minor version. So if you are at 4.2, update => 4.2.latest.

    0 讨论(0)
提交回复
热议问题