简体   繁体   English

Spree Commerce安装错误,Bundler找不到gem“rails”的兼容版本

[英]Spree Commerce installation error, Bundler could not find compatible versions for gem “rails”

At the time I install the Spree site (in according with this guide: http://guides.spreecommerce.com/getting_started.html ) , I get this problem: 当我安装Spree网站时(根据本指南: http//guides.spreecommerce.com/getting_started.html ),我遇到了这个问题:

deploy@bothunter:~/rails$ sudo -i gem install rails deploy @ bothunter:〜/ rails $ sudo -i gem install rails
Successfully installed rails-3.2.1 已成功安装rails-3.2.1
1 gem installed 安装1个宝石
deploy@bothunter:~/rails$ sudo -i gem install bundler deploy @ bothunter:〜/ rails $ sudo -i gem install bundler

Successfully installed bundler-1.0.22 1 gem installed 已成功安装bundler-1.0.22 1 gem
deploy@bothunter:~/rails$ sudo -i gem install spree deploy @ bothunter:〜/ rails $ sudo -i gem install spree
Successfully installed spree-1.0.0 1 gem installed 已成功安装spree-1.0.0 1 gem
deploy@bothunter:~/rails$ rails new mystore -d mysql create deploy @ bothunter:〜/ rails $ rails new mystore -d mysql create
create README.rdoc 创建README.rdoc
create Rakefile 创建Rakefile
create config.ru 创建config.ru
..... .....

run bundle install 运行捆绑安装
Fetching source index for https://rubygems.org/ 获取https://rubygems.org/的源索引
Using rake (0.9.2.2) 使用rake(0.9.2.2)
Using activemodel (3.2.1) 使用activemodel(3.2.1)
..... Using rack-test (0.6.1) .....使用机架测试(0.6.1)
Using hike (1.2.1) 使用徒步旅行(1.2.1)
Using actionpack (3.2.1) ..... Using coffee-rails (3.2.2) 使用actionpack(3.2.1).....使用coffee-rails(3.2.2)
Using jquery-rails (2.0.0) 使用jquery-rails(2.0.0)
Using mysql2 (0.3.11) 使用mysql2(0.3.11)
Using rails (3.2.1) 使用导轨(3.2.1)
Using uglifier (1.2.3) 使用uglifier(1.2.3)
Your bundle is complete! 你的包很完整! Use bundle show [gemname] to see where a bundled gem is installed. 使用bundle show [gemname]查看捆绑的gem的安装位置。

deploy@bothunter:~/rails$ cd mystore deploy @ bothunter:〜/ rails $ cd mystore
deploy@bothunter:~/rails/mystore$ spree install 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 gemfile spree_usa_epay
gemfile spree_skrill run gemfile spree_skrill运行
bundle install from "." 从“。”安装捆绑包
git://github.com/spree/spree_usa_epay.git (at 0cb57b4) is not checked out. 未检出git://github.com/spree/spree_usa_epay.git(位于0cb57b4)。 Please run bundle install precompiling assets 请运行bundle install预编译资产

git://github.com/spree/spree_usa_epay.git (at 0cb57b4) is not checked out. 未检出git://github.com/spree/spree_usa_epay.git(位于0cb57b4)。 Please run bundle install 请运行bundle install

deploy@bothunter:~/rails/mystore$ bundle install deploy @ bothunter:〜/ rails / mystore $ bundle install
Updating git://github.com/spree/spree_usa_epay.git 正在更新git://github.com/spree/spree_usa_epay.git

Updating git://github.com/spree/spree_skrill.git 正在更新git://github.com/spree/spree_skrill.git
Fetching source index for sitename.com Bundler could not find compatible versions for gem "rails": 获取sitename.com的源索引Bundler无法找到gem“rails”的兼容版本:
**In Gemfile: spree_usa_epay (>= 0) ruby depends on rails (<= 3.1.3, >= 3.1.1) ruby **在Gemfile中: spree_usa_epay(> = 0)ruby依赖于 rails(<= 3.1.3,> = 3.1.1)ruby

  **rails (3.2.1)** 

deploy@bothunter:~/rails/mystore$ 部署@ bothunter:〜/导轨/ $的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? 怎么解决?

Spree 1.0 only works with Rails 3.1.3. Spree 1.0仅适用于Rails 3.1.3。 We'll be looking at supporting Rails 3.2 in the next minor release of Spree. 我们将在Spree的下一个次要版本中寻求支持Rails 3.2。 Until that comes out, use 3.1.3, like this: 在此之前,请使用3.1.3,如下所示:

gem install rails -v 3.1.3

I'm pretty sure the problem here is that the rails version has progressed ahead of what spree is expecting. 我很确定这里的问题是rails版本已经超出了预期的狂欢。 So if you create the new rails app with the 3.1.3 version by typing in: 因此,如果您通过键入以下内容创建3.1.3版本的新rails应用程序:

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. 但是,之后,我在捆绑安装期间遇到了另一个错误,我还没有解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Bundler找不到与宝石“ rails”兼容的版本:大礼包 - Bundler could not find compatible versions for gem “rails”: for spree rails错误Bundler找不到与宝石宝石“ spree_backend”兼容的版本 - rails error Bundler could not find compatible versions for gem gem “spree_backend” 使用BitPay和Spree Commerce时,Bundler找不到与宝石“铁路”兼容的版本 - Bundler could not find compatible versions for gem “railties” when using BitPay and Spree Commerce Ruby 导轨错误:捆绑器找不到 gem“捆绑器”的兼容版本: - Ruby rails error: Bundler could not find compatible versions for gem "bundler": Bundler找不到与宝石spree_core兼容的版本(Spree Ruby on Rails) - Bundler could not find compatible versions for gem spree_core (Spree Ruby on Rails) Bundler 找不到 gem“bundler”的兼容版本: - Bundler could not find compatible versions for gem "bundler": Bundler找不到宝石“ bundler”的兼容版本 - Bundler could not find compatible versions for gem “bundler” ActiveAdmin with Rails 4:Bundler找不到宝石“ rails”的兼容版本 - ActiveAdmin with Rails 4: Bundler could not find compatible versions for gem “rails” Bundler无法找到gem的兼容版本,更新了Rails app - Bundler could not find compatible versions for gem, updating Rails app RoR-Bundler找不到与宝石“ rails”兼容的版本 - RoR - Bundler could not find compatible versions for gem “rails”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM