首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >rails捆绑错误可能是由于疯狂的宝石造成的

rails捆绑错误可能是由于疯狂的宝石造成的
EN

Stack Overflow用户
提问于 2018-03-28 15:49:57
回答 1查看 191关注 0票数 0

在我的Gemfile中添加了文档中的狂乱宝石之后,我在尝试bundle install时遇到了这个错误。

代码语言:javascript
复制
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时,我得到了以下信息:

代码语言:javascript
复制
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.

这是我的个人档案:

代码语言:javascript
复制
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'

我不知道为什么或如何发生这种情况,因为新增加的疯狂宝石。谢谢您的任何帮助,您可能会提供!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-03-28 16:02:20

因为您在windows上工作,所以它必须是问题,请查看它以获得更多细节。看起来这可能对你有帮助:

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49538963

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档