Aeroon provides an OCaml bindings for Aeron, using Aeron's C API
To build it, first install and build Aeron by following the instructions found there. Then clone the aeroon repository:
git clone https://github.com/onechronos/aeroon.git
cd aeroon
Finally, build and install aeroon:
export AERON_ROOT=/path/to/aeron
opam pin add .
or
export AERON_ROOT=/path/to/aeron
dune build
dune install
Here, /path/to/aeron
must be replaced with the path of the directory
where the Aeron source code
repository had been previously installed.
Refer to the
test
directory for usage examples that are OCaml translations of some of
the C
examples
found in the Aeron repository.
Note that to run these examples (indeed, any OCaml program using
aeroon), one has to tell the
system where to find the Aeron
shared object library libaeron.so
. For example:
export LD_LIBRARY_PATH=/path/to/aeron/build/lib