Skip to content

Instantly share code, notes, and snippets.

@goyalankit
Last active August 29, 2015 14:08
Show Gist options
  • Save goyalankit/537ac6b8c416d260b0c1 to your computer and use it in GitHub Desktop.
Save goyalankit/537ac6b8c416d260b0c1 to your computer and use it in GitHub Desktop.
compile instructions for libfastpaxos

libevent download

https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz

BDB download

Download Berkeley DB 6.1.19.tar.gz

http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html

mkdir osproject
tar -xzvf libevent-2.0.21-stable.tar.gz
tar -xzvf db-6.1.19

cd libevent-2.0.21-stable
./configure && make
# verify that libevent.a is created

cd ..

cd db-6.1.19
cd build_unix
../dist/configure && make

cd ..

# download libfastpaxos code to osproject
cd libfastpaxos

In both Makefile and Makefile.inc update BDB_DIR and LIBEVENT_DIR

BDB_DIR		= $(HOME)/osproject/db-6.1.19/build_unix
LIBEVENT_DIR= $(HOME)/osproject/libevent-2.0.21-stable

Finally run

make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment