Entorno Ubuntu 20.04.3 LTS
CCG 9.4.0
cmake versión 3.16.3
ahorro versión 0.13.0
Compilar preparación
apt-get install build-essential
apt-get install bison flex
apt-get install libboost-dev libevent-dev
compilar
Ingrese el código fuente y el directorio de Thrift
# 屏蔽其他语言,只编译C++的库
./configure --with-pic=PIC --without-as3 --without-c_glib --without-csharp --without-java --without-erlang --without-nodejs --without-nodets --without-lua --without-python --without-py3 --without-perl --without-php --without-php_extension --without-dart --without-ruby --without-haskell --without-go --without-swift --without-rs --without-cl --without-haxe --without-dotnetcore --without-d --enable-tests=no CFLAGS=-fPIC CXXFLAGS=-fPIC
make -j8
make install
Ejecutar el tutorial
cd tutorial/cpp
Puede ver que la ejecución de rpc es exitosa