twitter/cassandra — Issue #139: Not working if installed as a gem
Author: eyeofhell
Created: 2012-02-21 19:04:18+00:00
State: open

I have tried to use a Ruby bindings for Cassandra database by installing binding:

sudo gem install cassandra

and attempting to load it:

require 'cassandra'

Unfortunately, this fails with error:

Gem::LoadError: RubyGem version error: thrift_client(0.8.1 not ~> 0.7.0)

I have fixed it by installing outdated dependency:

sudo gem install thrift_client -v "~> 0.7.0"

But after that another error is raised that i don't know how to fix:

LoadError: no such file to load -- thrift_client/connection

Tested on Ubuntu 11.10 and OSX 10.7, with both Ruby 1.8.7 and 1.9.3-p0. Is i something i'm doing wrong or Cassandra and Ruby are not intended to work together?