我正在嘗試使用evernote gem。它依賴於thrift gem。如何更改我的寶石之一所依賴的寶石版本?
的Gemfile
gem 'evernote'
當我嘗試使用它,我得到這個錯誤:
Thrift::ProtocolException in PagesController#the_lab
No version identifier, old protocol client?
thrift (0.5.0) lib/thrift/protocol/binary_protocol.rb:122:in `read_message_begin'
thrift (0.5.0) lib/thrift/client.rb:45:in `receive_message'
evernote (0.9.0) vendor/gen-rb/evernote/edam/note_store.rb:97:in `recv_listNotebooks'
有一個newer version of the thrift gem available,這有可能解決這個問題。當我嘗試安裝它,我得到這個錯誤:
的Gemfile:
gem 'evernote'
gem 'thrift', "~> 0.6.0"
控制檯:
$ bundle install
Fetching source index for http://rubygems.org/
You have requested:
thrift ~> 0.6.0
The bundle currently has thrift locked at 0.5.0.
Try running `bundle update thrift`
$ bundle update thrift
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "thrift":
In Gemfile:
evernote depends on
thrift (~> 0.5.0)
thrift (0.6.0)
有沒有辦法我可以改變節儉的版本Evernote的依賴?
順便說一句,錯誤「沒有版本標識符,舊協議客戶端?」來自Thrift,並且表明它不能根據它對指定對象的IDL解析響應。 – Don 2012-10-01 20:03:28