Ruby on rails Bundler找不到gem的兼容版本;“活动支持”:
将我的Rails 4.2.5应用程序升级为5,现在在进行捆绑安装时出现以下错误:Ruby on rails Bundler找不到gem的兼容版本;“活动支持”:,ruby-on-rails,upgrade,Ruby On Rails,Upgrade,将我的Rails 4.2.5应用程序升级为5,现在在进行捆绑安装时出现以下错误: bundle install Fetching gem metadata from https://rubygems.org/.......... Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. Resolving dependencies.
bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activejob (= 5.0.0) was resolved to 5.0.0, which depends on
globalid (>= 0.3.6) was resolved to 0.3.7, which depends on
activesupport (>= 4.1.0)
google-webfonts-rails (~> 0.0.4) was resolved to 0.0.4, which depends on
activesupport (< 5.0, > 3.2.0)
jbuilder (~> 2.5) was resolved to 2.6.0, which depends on
activesupport (< 5.1, >= 3.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
actionpack (= 5.0.0) was resolved to 5.0.0, which depends on
rails-dom-testing (~> 2.0) was resolved to 2.0.1, which depends on
activesupport (< 6.0, >= 4.2.0)
spring was resolved to 2.0.0, which depends on
activesupport (>= 4.2)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
sprockets-rails (>= 2.0.0) was resolved to 3.2.0, which depends on
activesupport (>= 4.0)
bundle安装
从中获取gem元数据https://rubygems.org/..........
从中获取版本元数据https://rubygems.org/..
从中获取依赖项元数据https://rubygems.org/.
正在解析依赖项。。。
捆绑程序找不到gem“activesupport”的兼容版本:
在文件中:
rails(=5.0.0)已解析为5.0.0,这取决于
activejob(=5.0.0)已解析为5.0.0,这取决于
globalid(>=0.3.6)解析为0.3.7,这取决于
activesupport(>=4.1.0)
google webfonts rails(~>0.0.4)已解析为0.0.4,这取决于
activesupport(<5.0,>3.2.0)
jbuilder(~>2.5)已解析为2.6.0,这取决于
activesupport(<5.1,>=3.0.0)
rails(=5.0.0)已解析为5.0.0,这取决于
动态支持(=5.0.0)
rails(=5.0.0)已解析为5.0.0,这取决于
动态支持(=5.0.0)
rails(=5.0.0)已解析为5.0.0,这取决于
动态支持(=5.0.0)
rails(=5.0.0)已解析为5.0.0,这取决于
动态支持(=5.0.0)
rails(=5.0.0)已解析为5.0.0,这取决于
动态支持(=5.0.0)
rails(=5.0.0)已解析为5.0.0,这取决于
动态支持(=5.0.0)
rails(=5.0.0)已解析为5.0.0,这取决于
动态支持(=5.0.0)
rails(=5.0.0)已解析为5.0.0,这取决于
actionpack(=5.0.0)已解析为5.0.0,这取决于
rails dom测试(~>2.0)已解析为2.0.1,这取决于
activesupport(<6.0,>=4.2.0)
spring被解析为2.0.0,这取决于
activesupport(>=4.2)
rails(=5.0.0)已解析为5.0.0,这取决于
链轮轨道(>=2.0.0)已解析为3.2.0,这取决于
activesupport(>=4.0)
对rails来说相当陌生,以前从未遇到过这个问题。我尝试了gem更新和bundle更新,但仍然出现了这个错误。
谢谢。您的问题在这里解释:
google webfonts rails(~>0.0.4)已解析为0.0.4,这取决于
activesupport(<5.0,>3.2.0)
一旦支持rails 5,您需要使用较新版本的
google webfonts rails
gem,或者您需要完全摆脱该gem。您的问题在这里解释:
google webfonts rails(~>0.0.4)已解析为0.0.4,这取决于
activesupport(<5.0,>3.2.0)
一旦支持rails 5,您需要使用更新版本的
google webfonts rails
gem,或者您需要完全摆脱该gem。rails 5
需要activesupport>5
。请参阅此文档,将您的rails 4
应用程序升级到rails 5
rails 5
需要activesupport>5
。请参阅此文档,将您的rails 4
应用程序升级到rails 5