从源码编译

从2.4.0开始,Pegasus支持Linux和macOS平台进行源码编译。编译过程中遇到问题,可以通过Github Issues向我们咨询。

环境要求

  • GCC 5.4.0+
  • CMake 3.11.0+

Linux环境配置

你可以参考的Docker镜像来安装依赖并设置环境变量。例如:

源码编译

请先参考下载文档获取源码。

如果你想要执行测试程序,需要用如下命令来编译Pegasus:

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

如果不需要执行测试程序,只是单纯想编译Pegasus,使用如下命令即可:

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

编译后输出会放在当前目录的build/latest/output/目录下,里面包含bininclude以及lib目录。

执行测试程序

./run.sh test

编译打包

打包server端程序包,用于服务部署:

./run.sh pack_server

打包client端库,用于C/C++端客户端开发:

./run.sh pack_client

打包tools工具集,里面包含了各种工具(shell、bench):

./run.sh pack_tools

编译成功后,推荐先体验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.