Reputation: 1913
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 bundlerSuccessfully 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! Usebundle 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 runbundle install
precompiling assetsgit://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.gitUpdating 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?
Upvotes: 3
Views: 2663
Reputation: 23806
I'm pretty sure the problem here is that the rails version has progressed ahead of what spree is expecting. So if you create the new rails app with the 3.1.3 version by typing in:
rails _3.1.3_ new my_app_name
then you will get past this error. However, after that, I got another error during bundle install that I have not yet solved.
Upvotes: 3
Reputation: 107728
Spree 1.0 only works with Rails 3.1.3. We'll be looking at supporting Rails 3.2 in the next minor release of Spree. Until that comes out, use 3.1.3, like this:
gem install rails -v 3.1.3
Upvotes: 5