-
Notifications
You must be signed in to change notification settings - Fork 103
Build on Debian Ubuntu
:::caution Aerospike deprecated our C libevent Client Library. Use the standard C Client, which supports asynchronous programming models. :::
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 | .deb Package | Description |
---|---|---|
glibc | glibc | |
libssl | libssl-dev | Required for RIPEMD160 hash function. |
libevent | libevent | libevent |
To get the glibc and libssl dependencies:
sudo apt-get install libc6-dev libssl-dev
The libevent requires downloading and building the source.
To download and extract the latest 2.0.x 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
Create and install the libevent library:
cd libevent-2.0.21-stable
./configure PREFIX=/usr
make
sudo make install
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}
To 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