Install Kyototycoon on Debian wheezy

Kyoto Tycoon is a remote client for Kyoto Cabinet and support Leveldb, memcached protcol. Kyoto Cabinet/Tycoon are like memcached but provide permanent data. Now days enterprise use Kyoto products because they enable permanent store and are pluggable to memcached. All you have to do to change Kyoto Tycoon from memcached is to change port number.

I installed Kyoto Cabinet and Tycoon on Debian wheezy.
Kyoto Cabinet 1.2.76
Kyoto Tycoon 0.9.56

wget http://fallabs.com/kyotocabinet/pkg/kyotocabinet-1.2.76.tar.gz
tar zxvf kyotocabinet-1.2.76.tar.gz
cd kyotocabinet-1.2.76
./configure
make
make check
make install

wget http://fallabs.com/kyototycoon/pkg/kyototycoon-0.9.56.tar.gz
tar zxvf kyototycoon-0.9.56.tar.gz
cd kyototycoon-0.9.56
./configure
make

Error was occuerred.

Error
ktdbext.h:274:29: error: ‘getpid’ was not declared in this scope

According to this site https://aur.archlinux.org/packages/kyototycoon/
getpid() is mentioned in unistd.h

vi ktdbext.h
#include <unistd.h>

make
make check
make install

And another error was happend.

ktserver: error while loading shared libraries: libkyototycoon.so.2: cannot open shared object file: No such file or directory


ldd /usr/local/bin/ktserver
        linux-gate.so.1 =>  (0xb7837000)
        libkyototycoon.so.2 => not found
        libkyotocabinet.so.9 => not found
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7739000)
        libm.so.6 => /lib/libm.so.6 (0xb7712000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb76f4000)
        libc.so.6 => /lib/libc.so.6 (0xb75af000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7596000)
        /lib/ld-linux.so.2 (0xb7838000)


vim /etc/ld.so.conf.d/kyoto.conf
I added below path.
/usr/local/lib 


ldconfig


https://aur.archlinux.org/packages/kyototycoon/

http://d.hatena.ne.jp/ishibashits/20110430/1304143562