0

Noob following installation directions from here.

Doing a bundle install getting the following error:

Bundler could not find compatible versions for gem "rails":  
  In Gemfile:  
    open_conference_ware (~> 1.0.0.pre) ruby depends on
      rails (~> 4.0.2) ruby
    rails (4.1.8)

So I did sudo gem install rails -v 4.0.2 and now according to gem list:

rails (4.1.8, 4.0.2)

But I still recieve the error!
Doesn't 4.0.2 qualify?
Is there something I need to set to force the proper version?

Matthew Cordaro
  • 677
  • 1
  • 7
  • 26

1 Answers1

0

Yes, on both accounts. (Please see EDIT below)

When you run rails new SOMEPROJECT --skip-bundle it will auto generate a file called Gemfile. (Think of it as a header file as it includes the dependencies for SOMEPROJECT that Bundler will setup for you.) When it is generated, it will automatically default to the most current version installed on your system. So you must modify it to point to the proper version of rails:

Change line gem 'rails', '4.1.8' to gem 'rails', '4.0.2'.

Now you can continue with bundle install.

EDIT: Because you will likely run into this issue later, it is better to regenerate the project altogether by specifying the version in the rails new command:

rm -r SOMEPROJECT
rails _4.0.2_ new SOMEPROJECT --skip-bundle
Community
  • 1
  • 1
Matthew Cordaro
  • 677
  • 1
  • 7
  • 26