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.