spree/spree — Issue #1145: Spree Commerce installation error, Bundler could not find compatible versions for gem “rails”
Author: lepetal
Created: 2012-02-12 17:02:55+00:00
State: open

At the time I install the Spree site (in according with this guide: http://guides.spreecommerce.com/getting_started.html) , I get this problem:

deploy@bothunter:~/rails$ sudo -i gem install rails
Successfully installed rails-3.2.1
1 gem installed
deploy@bothunter:~/rails$ sudo -i gem install bundler

Successfully installed bundler-1.0.22 1 gem installed
deploy@bothunter:~/rails$ sudo -i gem install spree
Successfully installed spree-1.0.0 1 gem installed
deploy@bothunter:~/rails$ rails new mystore -d mysql create
create README.rdoc
create Rakefile
create config.ru
.....

run bundle install
Fetching source index for https://rubygems.org/
Using rake (0.9.2.2)
Using activemodel (3.2.1)
..... Using rack-test (0.6.1)
Using hike (1.2.1)
Using actionpack (3.2.1) ..... Using coffee-rails (3.2.2)
Using jquery-rails (2.0.0)
Using mysql2 (0.3.11)
Using rails (3.2.1)
Using uglifier (1.2.3)
Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.

deploy@bothunter:~/rails$ cd mystore
deploy@bothunter:~/rails/mystore$ spree install
Would you like to install the default gateways? (yes/no) [yes]
... gemfile spree gemfile spree_usa_epay
gemfile spree_skrill run
bundle install from "."
git://github.com/spree/spree_usa_epay.git (at 0cb57b4) is not checked out. Please run bundle install precompiling assets

git://github.com/spree/spree_usa_epay.git (at 0cb57b4) is not checked out. Please run bundle install

deploy@bothunter:~/rails/mystore$ bundle install
Updating git://github.com/spree/spree_usa_epay.git

Updating git://github.com/spree/spree_skrill.git
Fetching source index for sitename.com Bundler could not find compatible versions for gem "rails":
**In Gemfile: spree_usa_epay (>= 0) ruby depends on rails (<= 3.1.3, >= 3.1.1) ruby

**rails (3.2.1)**
deploy@bothunter:~/rails/mystore$

But...

deploy@bothunter:~/rails/mystore$ gem --list

rails (3.2.1, **3.1.3**)
railties (3.2.1, **3.1.3**)
rake (0.9.2.2, 0.9.2)
How to solve it?