Install Tokyo cabinet with Java

Source: Internet
Author: User

 

1. Install the dependent Libraries

Bzip2 and zlib need to be installed

Zlib is simple. Yum can handle the following issues:

YumInstall Zlib-devel

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.