diff --git a/docs/cn/thrift.md b/docs/cn/thrift.md index dcae34a5d6..9e1d4c99cb 100755 --- a/docs/cn/thrift.md +++ b/docs/cn/thrift.md @@ -18,9 +18,9 @@ brpc默认不启用thrift支持也不需要thrift依赖。但如果需用thrift Linux下安装thrift依赖 先参考[官方wiki](https://thrift.apache.org/docs/install/debian)安装好必备的依赖和工具,然后从[官网](https://thrift.apache.org/download)下载thrift源代码,解压编译。 ```bash -wget https://downloads.apache.org/thrift/0.18.1/thrift-0.18.1.tar.gz -tar -xf thrift-0.18.1.tar.gz -cd thrift-0.18.1/ +wget https://downloads.apache.org/thrift/0.22.0/thrift-0.22.0.tar.gz +tar -xf thrift-0.22.0.tar.gz +cd thrift-0.22.0/ ./bootstrap.sh ./configure --prefix=/usr --with-ruby=no --with-python=no --with-java=no --with-go=no --with-perl=no --with-php=no --with-csharp=no --with-erlang=no --with-lua=no --with-nodejs=no --with-rs=no --with-py3=no CXXFLAGS='-Wno-error' make CPPFLAGS=-DFORCE_BOOST_SMART_PTR -j 4 -s diff --git a/docs/en/thrift.md b/docs/en/thrift.md index 94ff551e38..d57f654d6f 100755 --- a/docs/en/thrift.md +++ b/docs/en/thrift.md @@ -18,9 +18,9 @@ brpc does not enable thrift support or depend on the thrift lib by default. If t Install thrift under Linux Read [Official wiki](https://thrift.apache.org/docs/install/debian) to install depended libs and tools, then download thrift source code from [official site](https://thrift.apache.org/download), uncompress and compile。 ```bash -wget https://downloads.apache.org/thrift/0.18.1/thrift-0.18.1.tar.gz -tar -xf thrift-0.18.1.tar.gz -cd thrift-0.18.1/ +wget https://downloads.apache.org/thrift/0.22.0/thrift-0.22.0.tar.gz +tar -xf thrift-0.22.0.tar.gz +cd thrift-0.22.0/ ./bootstrap.sh ./configure --prefix=/usr --with-ruby=no --with-python=no --with-java=no --with-go=no --with-perl=no --with-php=no --with-csharp=no --with-erlang=no --with-lua=no --with-nodejs=no --with-rs=no --with-py3=no CXXFLAGS='-Wno-error' make CPPFLAGS=-DFORCE_BOOST_SMART_PTR -j 4 -s