-
Notifications
You must be signed in to change notification settings - Fork 104
Build on Red Hat CentOS
Use the Aerospike libevent client to write applications to store and retrieve data from an Aerospike database cluster.
The Aerospike libevent client library requires the following libraries present on the local machine:
Library Name | .rpm Package | Description |
---|---|---|
glibc | glibc | |
libssl | openssl | Required for RIPEMD160 hash function. |
libevent | libevent | libevent |
To get the glibc and libssl dependencies:
sudo yum install openssl-devel glibc-devel
Getting the libevent requires downloading the source and building.
To download and extract the latest libevent library:
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar xvf libevent-2.0.21-stable.tar.gz
Make and install the libevent library:
cd libevent-2.0.21-stable
./configure PREFIX=/usr
make
sudo make install
On a 64 bit system, you may need to create the following symlink :
ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5
Download the Aerospike libevent client library package from here.
The client package for Linux is:
citrusleaf_client_libevent2_{VERSION}.tgz
To extract the package contents:
tar xvzf citrusleaf_client_libevent2_{VERSION}.tgz
This places the package contents in the following directory:
citrusleaf_client_libevent2_{VERSION}
Change to the Aerospike libevent directory and make the library:
cd citrusleaf_client_libevent2_{VERSION}
make
The library is created in the lib directory:
ls lib
libev2citrusleaf.a
On a successful build, run examples in the example directory:
cd example4
make
./example4