Install Tokyo cabinet on ubuntu + ruby

Every came across a task where in you get a task to insert 1 million + records in few hours? than the answer is NOSQL
Use Tokyo Cabinet. Here are the installation steps for the same.

First of all download the latest version of tokyocabinet via the following url

wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz
tar xvf tokyocabinet-1.4.47.tar.gz
cd tokyocabinet-1.4.47
./configure
make
make install

Next step is to install the ruby library which you can download from the url below

wget http://fallabs.com/tokyocabinet/rubypkg/tokyocabinet-ruby-1.31.tar.gz

tar xvf tokyocabinet-ruby-1.31.tar.gz
cd tokyocabinet-ruby-1.31
ruby extconf.rb
make
make install

Now to verify you installation go to irb

irb(main):001:0> require ‘rubygems’
=> true

irb(main):002:0> require ‘tokyocabinet’
=> true

Done. If you get any errors while doing this please free to comment. Thanks

Be Sociable, Share!

One comment

  • Daniel

    Finally worked for me. I visited other posts but they don’t seem to work might be due to different versions. This worked like a charm! thankyou very much you saved my day. Thanks again

Leave a Reply

Your email address will not be published. Required fields are marked *