[英]Bundler could not find compatible versions for gem "ruby"
I was trying to bundle install
, but I keep on getting this error message.我试图
bundle install
,但我不断收到此错误消息。
My attempt was to update the version of ruby. However, this did not work.我尝试更新 ruby 的版本。但是,这没有用。 I also researched the compatible version of activerecord that corresponds to ruby version 2.2.5., but I was not able to find any.
我还研究了与 ruby 版本 2.2.5. 相对应的 activerecord 的兼容版本,但我找不到任何版本。
I would truly appreciate it if you could resolve this error.如果您能解决此错误,我将不胜感激。
Here below is my gemfile for reference:以下是我的 gemfile 以供参考:
ruby '2.2.5'
source 'https://rubygems.org'
gem 'sinatra', '~> 2.1'
gem 'sinatra-contrib', '~> 2.1'
gem 'webrick', '~> 1.7'
gem 'sinatra-activerecord', '~> 2.0'
gem 'activerecord', '~> 6.1'
gem 'pg', '~> 1.2'
gem 'rake', '~> 13.0'
gem 'bcrypt'
gem 'sinatra-flash'
group :development do
gem 'debase'
gem 'fastri'
gem 'rcodetools'
gem 'rubocop'
gem 'ruby-debug-ide'
end
Reinstalling updated ruby version worked:重新安装更新的 ruby 版本有效:
rvm reinstall ruby-2.6.3
bundle install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.