https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
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