1

Install Tokyo cabinet on ubuntu + ruby

Posted by Dhaval Parikh on Sep 8, 2011

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

Tags: , , ,

Copyright © 2012 Dhaval Parikh All rights reserved. Theme by Laptop Geek.