我得到这个捆绑错误,我如何解决它。
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 4.2.11.3) was resolved to 4.2.11.3, which depends on
bundler (>= 1.3.0, < 2.0)
Curren
我正在尝试将rails应用程序从4.2更新到5,但执行bundle update时会看到以下错误
In Gemfile:
actionpack
activerecord-session_store (= 1.1.0) was resolved to 1.1.0, which depends on
actionpack (< 5.2, >= 4.0)
rails (= 5.0.7.2) was resolved to 5.0.7.2, which depends on
actionpack (= 5.0.7.2)
rs
我刚接触过ruby,我试着运行我的第一个应用程序,但是当我启动服务器时,我得到了以下错误:
Bundler could not find compatible versions for gem "nokogiri": In Gemfile:
capybara (>= 2.15) x86-mingw32 was resolved to 3.15.1, which depends on
nokogiri (~> 1.8)
Could not find gem 'nokogiri (~> 1.8)', which is req
我甚至对ruby都不是新手。我必须运行一个现有的应用程序,该应用程序用作Java应用程序的接口(我理解)。当我尝试获取所有依赖项(在Linux Mint上)时,我会看到以下内容:
$ bundle install
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
b
我正在尝试从Ruby2.3移到2.4.2和monogID 5.0到5.2。
我得到一个捆绑更新错误。
我正在使用rbenv,并在本地安装和设置2.4.2。
然后我不得不运行->,它安装了2.0.1
然后我运行包更新,并得到这个错误。
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
iron_worker_ng was resolved to 1.6.10, which depends on
bundler
rai
在博客文件夹中运行rails服务器时(我还成功地在博客文件夹中安装了所需的捆绑包),我收到以下错误:
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:423:in `block in error_message': undefined method `>' for < 2.0, >= 1.3.0:Gem::Requirement (NoMethodError)
from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:410:in `each'
from /usr/
我尝试使用ruby gem和RVM安装bundler,但在运行bundle init命令时遇到以下错误:
/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'bundler' (>= 0) among 13 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/CalebKleveter/.rvm/gems/ruby-2.2.3:/Users/CalebKleveter/.rvm/g
我遵循了,它涵盖了使用rspec,capybara等测试驱动程序。我在Gemfile中添加了以下内容:
group :test, :development do
gem 'turn'
gem 'rspec-rails'
gem 'capybara'
gem 'guard-rspec'
gem 'growl_notify'
end
运行bundle install,现在获取:
juco@jucoiMac ~/Desktop/rails-test $ rails s
ge
我正在尝试安装 gem。在第一次尝试中,我没有注意到红宝石的必要版本(我们使用的是2.3.1,2.4是必需的),在出现的错误消息中,我被要求运行bundle update,但是它将pg_search更新为2.3.5,这需要红宝石>= 2.5。即使我指定了一个较早版本的gem,它仍然显示相同的消息:
Gem::InstallError: pg_search requires Ruby version >= 2.5.
An error occurred while installing pg_search (2.3.5), and Bundler cannot continue.
Ma
我正在尝试用以下命令创建新的ruby on rails项目:
rails new . --no-ri --no-rdoc
但在执行此命令的末尾,我得到了:
run bundle install
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 4.2.6) was resolved to 4.2.6, which depends on
bundler (< 2.0, >= 1.3.0)
Current
当我输入bundle安装时,我得到了这个错误。我试图找到解决办法,但没能解决我的案子。请帮帮我。
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 4.1.8) was resolved to 4.1.8, which depends on
bundler (< 2.0, >= 1.3.0)
Current Bundler version:
bundler (2.0.1)
我尝试了下面的bundle install,但没有成功。
我尝试了很多方法,我在这里和那里发现:
我试过和苏多在一起,
我试过捆绑更新,
我删除了Gemfile.lock
我手动安装了json1.8.6。但它只想使用1.8.0。当它找不到其他宝石的时候,就退出安装。
请注意,我在Ruby相对较新,因此它可能是一些简单的解决方案。例如,我应该以某种方式使用1.8.6解释包,但我不知道如何做。
sudo bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed
我正在尝试在我的Rails应用程序中安装最新版本的haml、simple_form和devise,但我似乎无法让它们使用这个绑定器工具。我应该怎样做才能通过依赖问题呢?
这是Bundler工具引发的错误:
Bundler找不到与gem“activemodel”兼容的版本:
In snapshot (Gemfile.lock):
activemodel (= 5.1.1)
In Gemfile:
rails (~> 5.1.1) was resolved to 5.1.1, which depends on
activemodel (= 5.1.1)
第一次用堆叠式提问,如果我的英语不好,很抱歉,但希望有人能帮我:
因此,一个项目正在使用:
ruby '2.4.2'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '5.2.0'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use
当我开发/测试时,我总是在我的控制台中得到这个错误
Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`.
这根本不是阻挡我,而是骚扰我。我知道最简单的解决方案就是更新我的Gemfile.lock。
BUNDLED WITH
对于这个Gemfile:
source 'https://rubygems.org'
ruby '2.3.1' # equivalent version to what jruby supports
gem 'jrubyfx'
邦德勒找不到宝石,即使是
$ bundle install
Fetching gem metadata from https://api.rubygems.org/..........
Could not find gem 'jrubyfx' in any of the gem sources list
运行捆绑包安装命令时出错。Ruby版本是2.2.0,Rails版本是4.1.8。环境为Apple Mac OS Sierra (10.12.5)
Bundler could not find compatible versions for gem "activerecord":
在Gemfile中: composite_primary_keys (= 7.0.15)被解析为7.0.15,这取决于活动记录(~> 4.1.7)
rails (= 4.2.4) was resolved to 4.2.4, which depends on
activerecord (= 4
在调用方法“.create”时,项目中的所有模型都会出现以下错误:
NoMethodError: undefined method `[]' for nil:NilClass
from /home/pavelkhrulev/.rvm/gems/ruby-2.0.0-p195@spasibo/bundler/gems/rails-b52b0bebd147/activerecord/lib/active_record/attribute_methods/read.rb:86:in `block in read_attribute'
from /home/pavelkhrulev/.
我在UbuntuServer14.04LTS的新安装上安装了一个带有CRM插件的干净Redminine3.0。我成功地使用了redmine和一个小插件,但CRM插件给了我这样的印象:
# bundle install --without development test RAILS_ENV=production
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for al
在升级最新版本的rails应用程序时,我遇到了parsel is no longer supported. Use at your own risk问题,这是访问令牌gem的运行时依赖项。 `parsel` is no longer supported. Use at your own risk. 从/home/sunflower/.rvm/gems/ruby-2.6.5@formyula_er_plus/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in“/home/sunflower/.rvm/gems/ruby-2.6.5@formyula_
在检查我的系统是否符合最低要求之后,我开始检查版本是否合适:rails new app --当新应用程序为零时,我接下来会收到消息:
run bundle install
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/ui.rb:36:in `initialize': undefined method `[]' for #<Thor::Shell::Color:0x95890e0> (NoMethodError)
from /usr/lib/ruby/vendor_ruby/bund
我当前的rails应用程序构建在ruby1.9.3和rails 3上。
Gem::InstallError: nokogiri requires Ruby version >= 2.1.0.
An error occurred while installing nokogiri (1.8.2), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.8.2'` succeeds before bundling.
如何在不更新ruby版本的情况下解决这个问题。