Ruby 在 rails 上可能由于狂欢宝石导致的捆绑包错误
Ruby on rails Bundle error possibly due to spree gems
将文档中的 spree gems 添加到我的 Gemfile 后,我在尝试 bundle install
:
时遇到了这个错误
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.
然后当我尝试 Bundle Update
我得到这个:
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.
这是我的 Gemfile:
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'
由于新添加的狂欢宝石,我不知道为什么或如何发生这种情况。预先感谢您提供的任何帮助!
由于您正在处理 windows 它必须是 this 问题,请检查它以获取更多详细信息。看起来这可能对您有所帮助:
Search cmd, right click, (Run as administrator), gem install rabl -v '0.13.1', and you're done.
将文档中的 spree gems 添加到我的 Gemfile 后,我在尝试 bundle install
:
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.
然后当我尝试 Bundle Update
我得到这个:
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.
这是我的 Gemfile:
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'
由于新添加的狂欢宝石,我不知道为什么或如何发生这种情况。预先感谢您提供的任何帮助!
由于您正在处理 windows 它必须是 this 问题,请检查它以获取更多详细信息。看起来这可能对您有所帮助:
Search cmd, right click, (Run as administrator), gem install rabl -v '0.13.1', and you're done.