Ruby on rails RubyonRails捆绑包错误可能是由于spreegems造成的

Ruby on rails RubyonRails捆绑包错误可能是由于spreegems造成的,ruby-on-rails,ruby,git-bash,Ruby On Rails,Ruby,Git Bash,将文档中的spree gems添加到我的Gemfile中后,我在尝试捆绑安装时遇到了此错误: Bundler could not find compatible versions for gem "cocaine": In snapshot (Gemfile.lock): cocaine (= 0.6.0) In Gemfile: ckeditor (>= 4.2.4, ~> 4.2) x86-mingw32 was resolved to 4.2.4, which

将文档中的spree gems添加到我的Gemfile中后,我在尝试
捆绑安装时遇到了此错误:

Bundler could not find compatible versions for gem "cocaine":
  In snapshot (Gemfile.lock):
    cocaine (= 0.6.0)

  In Gemfile:
ckeditor (>= 4.2.4, ~> 4.2) x86-mingw32 was resolved to 4.2.4, which depends on
  cocaine x86-mingw32

spree (~> 3.4.4) x86-mingw32 was resolved to 3.4.4, which depends on
  spree_core (= 3.4.4) x86-mingw32 was resolved to 3.4.4, which depends on
    paperclip (~> 5.1.0) x86-mingw32 was resolved to 5.1.0, which depends on
      cocaine (~> 0.5.5) x86-mingw32

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
然后,当我尝试
捆绑更新时
得到以下结果:

Errno::EACCES: Permission denied @ rb_file_s_symlink -
(fixtures/ashared/views_rails_3/users/phone_number.json.rabl,
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/rabl- 
0.13.1/fixtures/ashared/views_rails_3/users/phone_number.xml.rabl)
An error occurred while installing rabl (0.13.1), and Bundler cannot continue.
Make sure that `gem install rabl -v '0.13.1'` succeeds before bundling.
这是我的档案:

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1', '>= 5.1.5'

# This just fixes everything?
gem 'actionpack', '~> 5.1', '>= 5.1.5'

# Use sqlite3 as the database for Active Record
gem 'sqlite3'

# Use Puma as the app server
gem 'puma', '~> 3.11', '>= 3.11.3'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0', '>= 5.0.7'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '~> 4.1', '>= 4.1.6'

# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2', '>= 4.2.2'

# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5.1'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'

# Use Redis adapter to run Action Cable in production
# hiredis is not supported on windows
# gem 'redis', '~> 3.0'

# Use ActiveModel has_secure_password
gem 'bcrypt', '~> 3.1.11'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platform: [:mri, :mingw, :x64_mingw]
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
  gem 'web-console', '>= 3.3.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# SEO & Meta Tags
gem 'meta-tags'

# Text editor for blog posts
gem 'ckeditor', '~> 4.2', '>= 4.2.4'

# Framework for forms, (forms that require ckeditor especially).
gem 'simple_form', '~> 3.5', '>= 3.5.1'

# Contact form email delivery
gem 'mail_form'

# Ecommerce solution
gem 'spree', '~> 3.4.4'
gem 'spree_gateway', '~> 3.3'
源代码'https://rubygems.org'
#捆绑边缘Rails:gem'Rails',github'Rails/Rails'
gem'rails','~>5.1','>=5.1.5'
#这就解决了一切?
gem'actionpack','~>5.1','>=5.1.5'
#使用sqlite3作为活动记录的数据库
gem'sqlite3'
#使用Puma作为应用程序服务器
宝石“彪马”,“大于3.11”,“大于等于3.11.3”
#将SCS用于样式表
gem'sass-rails','~>5.0','>=5.0.7'
#使用Uglifier作为JavaScript资产的压缩器
宝石'uglifier','~>4.1','>=4.1.6'
#将CoffeeScript用于.coffee资产和视图
gem“咖啡轨”,“大于4.2”,“大于等于4.2.2”
#看https://github.com/rails/execjs#readme 获取更多受支持的运行时
#宝石“therubyracer”,平台::ruby
#使用jquery作为JavaScript库
gem'jqueryrails'
#Turbolinks使web应用程序的导航速度更快。阅读更多:https://github.com/turbolinks/turbolinks
gem‘涡轮链接’,“~>5.1”
#轻松构建JSON API。阅读更多:https://github.com/rails/jbuilder
gem'jbuilder',“~>2.5”
#使用Redis适配器在生产中运行操作电缆
#windows不支持hiredis
#gem'redis',“~>3.0”
#使用ActiveModel具有\u安全\u密码
gem'bcrypt',“~>3.1.11”
#使用Capistrano进行部署
#gem“capistrano rails”,集团::开发
小组:开发,:测试
#在代码中的任意位置调用“byebug”以停止执行并获得调试器控制台
gem'byebug',平台:[:mri,:mingw,:x64_mingw]
结束
小组:发展怎么办
#在异常页面上或通过使用代码中的任意位置访问IRB控制台。
gem“web控制台”,“>=3.3.0”
结束
#Windows不包括zoneinfo文件,因此捆绑tzinfo数据
gem'tzinfo data',平台:[:mingw,:mswin,:x64_mingw,:jruby]
#搜索引擎优化和元标签
gem‘元标签’
#博客文章的文本编辑器
gem'ckeditor','~>4.2','>=4.2.4'
#表单框架(尤其是需要ckeditor的表单)。
gem‘简单形式’,‘~>3.5’,‘>=3.5.1’
#联络表格电邮派递
gem“邮件表格”
#电子商务解决方案
gem“疯狂”,即“~>3.4.4”
gem“spree_gateway”,“~>3.3”

我不知道这是为什么,也不知道这是如何发生的,因为新增加的狂欢宝石。提前感谢您提供的任何帮助

由于您在windows上工作,因此必须解决此问题,请查看以了解更多详细信息。看起来这可能会帮助您:

搜索cmd,右键单击,(以管理员身份运行),gem安装rabl-v“0.13.1”,您就完成了


你用什么操作系统?我用的是Windows,我不太确定如何应用它。您能帮我理解如何进行此操作吗?我尝试安装gem,但发生了以下情况:
$gem install rabl-v“0.13.1”错误:在执行gem时。。。(Errno::EACCES)权限被拒绝@rb_file_s_symlink-(fixtures/ashared/views\u rails\u 3/users/phone\u number.json.rabl,C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/rabl-0.13.1/fixtures/ashared/views\u rails/users/phone\u number.xml.rabl)
@Jake您应该首先右击终端图标以管理员身份运行终端。