在我的Gemfile中添加了他们文档中的spree gem后,我在尝试content = [[{1},{2},{3},{1},{2},{3}]]
时遇到了这个错误:
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
这是我的Gemfile:
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.
由于新添加的狂欢宝石,我不知道为什么或如何发生这种情况。提前感谢您提供的任何帮助!
答案 0 :(得分:1)
由于您正在处理Windows,因此必须this问题,请查看详细信息。看起来这可能会对您有所帮助:
搜索cmd,右键单击,(以管理员身份运行),gem install rabl -v' 0.13.1',然后就完成了。