kumofsã®ã¤ã³ã¹ãã¼ã«
大ä½ã¯kumofsを使う(さくらインターネット創業日記)ãåèã«ããªããé²ããã°OK
ã¤ã³ã¹ãã¼ã«ã«å¿ è¦ãªæ å ±ã¯公式ドキュメントã«è¨è¼ããã¦ããã®ã§ããã¡ããåèã«ãã
å¿ è¦ãªã©ã¤ãã©ãªã®ã¤ã³ã¹ãã¼ã«
CentOSã®å ´å
sudo yum install libtool openssl-devel bzip2-devel
Ubuntuã®å ´å
sudo aptitude install libtool libssl-dev libbzip-dev
Rubyã®æºå
tar zxf ruby-1.8.7-p249.tar.gz cd ruby-1.8.7-p249 ./configure --prefix=/usr/local/ruby/1.8.7-p249 make sudo make install cd /usr/local/ruby sudo ln -s 1.8.7-p249 default
MessagePack for Rubyãgemããå ¥ãã
tar zxf rubygems-1.3.5.tgz cd rubygems-1.3.5 /usr/local/ruby/default/bin/ruby setup.rb sudo /usr/local/ruby/default/bin/gem install messagepack
MessagePack for C++ã®ã¤ã³ã¹ãã¼ã«
tar zxf msgpack-0.4.1.tar.gz cd msgpack-0.4.1 ./configure --prefix=/usr/local/msgpack/0.4.1 make sudo make install cd /usr/local/msgpack sudo ln -s 0.4.1 default
TokyoCabinetã®ã¤ã³ã¹ãã¼ã«
tar zxf tokyocabinet-1.4.42.tar.gz cd tokyocabinet-1.4.42 ./configure --prefix=/usr/local/tokyocabinet/1.4.42 make make check sudo make install cd /usr/local/tokyocabinet sudo ln -s 1.4.42 default
kumofsã®ã¤ã³ã¹ãã¼ã«
tar zxf kumofs-0.3.1.tar.gz cd kumofs-0.3.1 ./configure --prefix=/usr/local/kumofs/0.3.1 \ --with-msgpack=/usr/local/msgpack/default \ --with-tokyocabinet=/usr/local/tokyocabinet/default make sudo make install cd /usr/local/kumofs ln -s 0.3.1 default
kumofsã®èµ·å
公式ドキュメントã«ãã¥ã¼ããªã¢ã«ã®é
ãããã®ã§ãããåèã«ããã°å¤§ä¸å¤«ã ããèµ·åã®éã«ãlibtokyocabinet.so.9ããªããã¨æããããã¨ãããã
ãã®æã¯TCã®ã©ã¤ãã©ãªã¸ã®ãã¹ãLD_LIBRARY_PATHã«è¨å®ããå¿
è¦ãããã*1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/tokyocabinet/default/lib
æ¯åã¯é¢åãªã®ã§.bashrcã.zshenvãªã©ã«å ¥ãã¦ãã
*1:ä»åã®ä¾ã®å ´åã¯å¿ é