[英]Ruby on Rails - how to deal with gem dependences
是否有規則解決不兼容的寶石問題?
作為示例,我顯示了添加gem 'google-cloud-speech'
后當前遇到的問題
我收到錯誤消息:
Bundler could not find compatible versions for gem
"activesupport": In Gemfile:
gcloud_storage was resolved to 0.0.3, which depends on
gcloud (= 0.7.2) was resolved to 0.7.2, which depends on
google-api-client (~> 0.8.3) was resolved to 0.8.7, which depends on
activesupport (< 5.0, >= 3.2)
jbuilder (~> 2.5) was resolved to 2.7.0, which depends on
activesupport (>= 4.2.0)
jbuilder (~> 2.5) was resolved to 2.7.0, which depends on
activesupport (>= 4.2.0)
jbuilder (~> 2.5) was resolved to 2.7.0, which depends on
activesupport (>= 4.2.0)
rails (~> 5.1.6) was resolved to 5.1.6, which depends on
activesupport (= 5.1.6)
rails (~> 5.1.6) was resolved to 5.1.6, which depends on
activesupport (= 5.1.6)
rails (~> 5.1.6) was resolved to 5.1.6, which depends on
activesupport (= 5.1.6)
rails (~> 5.1.6) was resolved to 5.1.6, which depends on
activesupport (= 5.1.6)
rails (~> 5.1.6) was resolved to 5.1.6, which depends on
activesupport (= 5.1.6)
rails (~> 5.1.6) was resolved to 5.1.6, which depends on
activesupport (= 5.1.6)
rails (~> 5.1.6) was resolved to 5.1.6, which depends on
activesupport (= 5.1.6)
rails (~> 5.1.6) was resolved to 5.1.6, which depends on
sprockets-rails (>= 2.0.0) was resolved to 3.2.1, which depends on
activesupport (>= 4.0) Bundler could not find compatible versions for gem "faraday": In Gemfile:
gcloud_storage was resolved to 0.0.3, which depends on
faraday (= 0.9.0)
gcloud_storage was resolved to 0.0.3, which depends on
gcloud (= 0.7.2) was resolved to 0.7.2, which depends on
grpc (~> 0.13.1) was resolved to 0.13.1, which depends on
googleauth (~> 0.5.1) was resolved to 0.5.2, which depends on
faraday (~> 0.12) Bundler could not find compatible versions for gem "grpc": In Gemfile:
gcloud_storage was resolved to 0.0.3, which depends on
gcloud (= 0.7.2) was resolved to 0.7.2, which depends on
grpc (~> 0.13.1)
google-cloud-speech was resolved to 0.20.0, which depends on
grpc (~> 1.0)
您的gem尚未准備好用於rails 5.x,因為它需要主動支持(<5.0,> = 3.2),通常在gems repo上聲明類似的內容(如果不再維護,則可能不再顯示)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.