To build rusteron-archive, you need to have the following installed:
- Rust: Make sure you have the Rust toolchain installed. You can install it from rustup.rs.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Java 17+: Java 17 or newer is required to build the Aeron archive C bindings. Ensure that Java is properly set up in your system environment.
- CMake: required to build the c bindings
sudo apt install linux-tools-$(uname -r) cmake uuid-dev -y
# or
sudo snap install cmake --classic
- CLang: required to build the c bindings
sudo apt install clang -y
- Just - optional, similar to cmake
cargo install just
On macOS, you can install Java 17 using Homebrew:
brew install openjdk@17
Then, link Java 17 to make it available system-wide:
sudo ln -sfn $(brew --prefix openjdk@17)/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-17.jdk
On most Linux distributions, you can install OpenJDK 17 with the package manager:
-
Ubuntu/Debian:
sudo apt update sudo apt install openjdk-17-jdk
-
Fedora:
sudo dnf install java-17-openjdk
-
Arch Linux:
sudo pacman -S jdk-openjdk
On Windows, you can download and install Java 17 from the Adoptium website, selecting the "Temurin" distribution and version 17. During installation, make sure to check the option to set up the Java environment variables.
Once Rust and Java are installed, you can build the project using Cargo:
cargo build --release
If you are using a just
, you can also run build commands conveniently with predefined tasks:
just build # Builds the project
just test # Runs the test suite
Make sure all dependencies are set up correctly to avoid issues with the Aeron C bindings during the build.
- Complains no files in aeron directory
- run
git submodule update --init --recursive