Aegon

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.zst

Or build the package directly using the provided PKGBUILD:

cd packaging/arch
makepkg -si

What's Installed

Each distribution package installs the complete C++ framework and C ABI:

LocationContents
/usr/include/aegon/Complete C++23 public API and C ABI headers (aegon/http/, aegon/core/, aegon/c/, etc.)
/usr/lib/libaegon_c.soShared dynamic C ABI wrapper (libaegon_c.so.0.3.2) with SONAME symlinks
/usr/lib/libaegon_*.aStatic 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.pcpkg-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_c

Building 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-dev

If 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 Aegon

2. Configure with CMake

cmake -B build -S . -G Ninja \
    -DAEGON_BUILD_TESTS=ON \
    -DAEGON_BUILD_C_ABI=ON \
    -DAEGON_BUILD_C_EXAMPLES=ON

Aegon always compiles with -O3 -march=native; there is no build-type or profile selection.

CMake Configuration Options

OptionDefaultDescription
AEGON_BUILD_TESTSONBuild the unified CTest suite and benchmark harness
AEGON_BUILD_C_ABIONBuild the C ABI wrapper libraries (libaegon_c.so and libaegon_c.a)
AEGON_BUILD_C_EXAMPLESOFFBuild C ABI reference examples (examples/c)
AEGON_BUILD_BENCHMARKSOFFBuild 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-failure

5. Install System-Wide

sudo cmake --install build