Compiling and installing Hyperdex from sources with Java and YCSB bindings on Debian

Posted: août 2nd, 2012 | Author: | Filed under: BigData, Dev, Java, Linux, NoSQL, Tutorial | No Comments »

After a lot of hours I finally succeed to build Hyperdex on a Debian with Java and YCSB bindings.

1 – Apt sources

Edit /etc/apt/sources.list and add backports packages

deb http://backports.debian.org/debian-backports squeeze-backports main

If you don’t have contrib and non-free for the main line, add them :

deb http://debian.mirrors.ovh.net/debian/ squeeze main contrib non-free

Add the Hyperdex repository

wget -O - http://debian.hyperdex.org/hyperdex.gpg.key \
  | apt-key add -

wget -O /etc/apt/sources.list.d/hyperdex.list \

http://debian.hyperdex.org/hyperdex.list

Update

apt-get update

2 – Install dependencies

apt-get install git openjdk-6-jdk build-essential libcityhash-dev libgoogle-glog-dev \
libpopt-dev libpo6-dev libe-dev libbusybee-dev python python-dev python-pyparsing \
python-setuptools python-argparse cython swig2.0 autoconf automake autoconf-archive libtool pkg-config gperf
easy_install sphinx
wget https://github.com/downloads/brianfrankcooper/YCSB/ycsb-0.1.4.tar.gz
tar zxf ycsb-0.1.4.tar.gz
export CLASSPATH=`pwd`/ycsb-0.1.4/core/lib/core-0.1.4.jar
git clone git://git.hyperdex.org/po6.git
git clone git://git.hyperdex.org/e.git

cd po6
autoreconf -i; ./configure; make && make install
cd ..

cd e
autoreconf -i; ./configure; make && make install
cd ..

3 – Install Hyperdex

git clone git://git.hyperdex.org/HyperDex.git

cd Hyperdex
autoreconf -i; ./configure --enable-java-bindings --enable-ycsb; make && make install