gpt4 book ai didi

ruby-on-rails - Bundler 找不到 gem "builder"和 "bundler": 的兼容版本

转载 作者:太空宇宙 更新时间:2023-11-03 18:20:47 28 4
gpt4 key购买 nike

我几天前才开始使用 ruby​​。我不完全理解 gemfile 的概念。我的 Gemfile 看起来像:

source 'http://rubygems.org'

gem 'sunspot_solr', github: 'sunspot/sunspot', branch: 'master'
gem 'sunspot_rails', github: 'sunspot/sunspot', branch: 'master'

但是在运行“bundle install”时。

Bundler could not find compatible versions for gem "builder":
In Gemfile:
sunspot_rails (>= 0) ruby depends on
builder (~> 2.1.2) ruby

sunspot_rails (>= 0) ruby depends on
builder (3.2.2)

Bundler could not find compatible versions for gem "bundler":
In Gemfile:
sunspot_rails (>= 0) ruby depends on
bundler (~> 1.0.0) ruby

Current Bundler version:
bundler (1.3.5)

This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

应该安装哪个版本的builder,有冲突,

最佳答案

删除 Gemfile.lock 并运行 bundle install,让 Bundler 从头开始​​解决所有依赖项。

关于ruby-on-rails - Bundler 找不到 gem "builder"和 "bundler": 的兼容版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18825294/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com