Installation
Install Aegon using pre-built distribution packages for Arch Linux, Debian, Ubuntu, Fedora, and RHEL, or compile from source.
Aegon is distributed both as pre-built native packages for major 64-bit Linux distributions and as portable tarballs. You can also easily build the framework from source using CMake and Ninja.
Pre-Built Distribution Packages
Download the latest release binaries from the GitHub Releases page:
Install using pacman:
sudo pacman -U aegon-0.3.2-1-x86_64.pkg.tar.zstOr build the package directly using the provided PKGBUILD:
cd packaging/arch
makepkg -siWhat's Installed
Each distribution package installs the complete C++ framework and C ABI:
| Location | Contents |
|---|---|
/usr/include/aegon/ | Complete C++23 public API and C ABI headers (aegon/http/, aegon/core/, aegon/c/, etc.) |
/usr/lib/libaegon_c.so | Shared dynamic C ABI wrapper (libaegon_c.so.0.3.2) with SONAME symlinks |
/usr/lib/libaegon_*.a | Static modular libraries (libaegon_http.a, libaegon_core.a, libaegon_net.a, etc.) |
/usr/lib/cmake/Aegon/ | CMake target definitions (AegonConfig.cmake, AegonTargets.cmake) |
/usr/lib/pkgconfig/aegon-c.pc | pkg-config metadata for compiler and linker flags |
Verifying the Installation
After installing the package, verify that pkg-config detects Aegon:
pkg-config --modversion aegon-c
# Output: 0.3.2
pkg-config --cflags --libs aegon-c
# Output: -I/usr/include -L/usr/lib -laegon_cBuilding from Source
Prerequisites
To compile Aegon from source, ensure your development environment satisfies the following requirements:
Compiler & Toolchain
- C++ Compiler: GCC 13+, Clang 17+, or MSVC 2022 (v19.38+) with C++23 coroutine support.
- Build System: CMake 3.20+ and Ninja (recommended).
System Dependencies (Linux)
Install the required development headers:
sudo apt-get update && sudo apt-get install -y \
build-essential cmake ninja-build git pkg-config \
liburing-dev libssl-dev libsqlite3-dev libpq-dev \
libnghttp2-dev libdeflate-dev protobuf-compiler libprotobuf-devIf a dependency is missing, CMake stops during configuration with the package name and Arch/Debian install hints. For a custom install prefix, set the matching <NAME>_ROOT variable (for example, -DNGHTTP3_ROOT=/usr/local).
Build Steps
1. Clone Repository
git clone https://github.com/UdayKhare09/Aegon.git
cd Aegon2. Configure with CMake
cmake -B build -S . -G Ninja \
-DAEGON_BUILD_TESTS=ON \
-DAEGON_BUILD_C_ABI=ON \
-DAEGON_BUILD_C_EXAMPLES=ONAegon always compiles with -O3 -march=native; there is no build-type or profile selection.
CMake Configuration Options
| Option | Default | Description |
|---|---|---|
AEGON_BUILD_TESTS | ON | Build the unified CTest suite and benchmark harness |
AEGON_BUILD_C_ABI | ON | Build the C ABI wrapper libraries (libaegon_c.so and libaegon_c.a) |
AEGON_BUILD_C_EXAMPLES | OFF | Build C ABI reference examples (examples/c) |
AEGON_BUILD_BENCHMARKS | OFF | Build standalone benchmark servers |
3. Compile
cmake --build build -j$(nproc)4. Run Tests
# Optional: Start Postgres & Redis containers for live integration tests
docker compose -f docker-compose.test.yml up -d
ctest --test-dir build --output-on-failure5. Install System-Wide
sudo cmake --install build