If you’re trying to run Apache Cassandra with the RubyGem, you may encounter an error similar to the following.
thrift_client(0.8.1 not ~> 0.7.0)
You can fix this by editing the RubyGem.
cd /Library/Ruby/Gems/1.8/gems/cassandra-0.12.1/lib/ vim cassandra.rb
Find the line which sets the dependency.
gem 'thrift_client', '~> 0.7.0'
Change it to the following.
gem 'thrift_client', '~> 0.8.0'
Your script should now run without an error.
Don't have time to check my blog? Get a weekly email with all the new posts. This is my personal blog, so obviously it is 100% spam free.
Tags: cassandra, nosql, ruby, rubygems
This entry was posted on Monday, October 29th, 2012 at 10:30 am and is filed under Programming, Tech. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.