Installing TokyoTyrant On Debian
Get the tokyo cabinet package
●wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz
Get the tokyo tyrant package
●wget http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz
unzip files
●tar xzvf tokyocabinet-1.4.47.tar.gz
x : extract
z : gunzip
v : verbose
f : file
●tar xzvf tokyocabinet-1.4.41.tar.gz
First install cabinet, then tyrant Cabinet
cd tokyocabinet-1.4.47
./configure --prefix=/usr/local/tokyocabinet
In case of configure: error: zlib.h is required
su (login as root)
apt-get install libbz2-dev aptitude install zlib
this command gives the packages which are related to the zlib
I installed zlib1g-dev
aptitude install zlib1g-dev
exit
./configure --prefix=/usr/local/tokyocabinet
default prefix is /usr/local
make
make install
###TokyoTyrant
./configure --prefix=/usr/local/tokyotyrant --with-tc=/usr/local/tokyocabinet
make
make install
/usr/local/tokyotyrant/sbin
ls ttservctl
in this file you can do settings of the port number , pid file . log dir ., type of dataStorage ... table , hash, b+tree
export LD_LIBRARY_PATH=/usr/local/tokyocabinet/lib
export PATH=/usr/local/tokyotyrant/bin:$PATH
sh ttservctl start