Compile from source

Since 2.4.0, Pegasus supports to build both on Linux and macOS. Please don’t hesitate to contact us via Github Issues when you encountered any problem.

Requirements

  • GCC 5.4.0+
  • CMake 3.24.0+

Linux environment

You can refer to the docker images to install dependencies and set environment variables. For example:

Compilation

Please refer to Downloads to fetch the sources。

If you want to run tests, you should build Pegasus by the following command:

./run.sh build --test -c --clear_thirdparty -j $(nproc)

If you want to build Pegasus without runing tests, just execute the following command:

./run.sh build -c --clear_thirdparty -j $(nproc)

The output of compilation will be placed under build/latest/output/ of the source directory. It includes bin, include and lib.

Run tests

./run.sh test

Packaging

Package server binaries for development:

./run.sh pack_server

Package client libraries for C/C++ development:

./run.sh pack_client

Package toolset which includes various tools (shell, bench):

./run.sh pack_tools

If this is your first time compiling Pegasus, it’s recommended to try onebox.

Copyright © 2023 The Apache Software Foundation. Licensed under the Apache License, Version 2.0.

Apache Pegasus is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Apache Pegasus, Pegasus, Apache, the Apache feather logo, and the Apache Pegasus project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.