1. Install the dependent Libraries
Bzip2 and zlib need to be installed
Zlib is simple. Yum can handle the following issues:
However, Bzip2 on Yum does not seem to comply with the minimum version requirements recommended by collaborators. So install it manually ......
Wget http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz </P> <p> tar-xzvf bzip2-1.0.5.tar.gz </P> <p> Cd bzip2-1.0.5 </P> <p> make-F Makefile-libbz2_so </P> <p> make install prefix =/usr
2. Compile and install Tokyo Cabinet
. /Configure -- prefix =/usr -- enable-fastest -- enable-off64 -- enable-profile </P> <p> make </P> <p> # check, however, this takes a long time: <br/> make check </P> <p> # The Last installation <br/> make install
3. install Java support
Wget http://www.1978th.net/tokyocabinet/javapkg/tokyocabinet-java-1.23.tar.gz </P> <p> tar-xzvf tokyocabinet-java-1.23.tar.gz </P> <p> Cd tokyocabinet-java-1.23 </P> <p>. /configure -- prefix =/usr </P> <p> # Then an error is reported ...... Missing JNI. H, forgetting to install JDK ...... </P> <p> # Remember to export java_home. Otherwise, the error JNI. H is returned. </P> <p> export java_home = "/usr/Java/Default" </P> <p> # configure again. </P> <p>./configure -- prefix =/usr </P> <p> make install
Finally, the tokyocabinet. jar and libjtokyocabinet. So files are available in/usr.
From http://www.coder4.com/archives/818