This is an automated email from the ASF dual-hosted git repository.

caidj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 28b5322f update thrift_doc
     new da5468a4 Merge pull request #2230 from infdahai/thrift_doc
28b5322f is described below

commit 28b5322feb7a288e3b7386336f6ab14f0029325e
Author: clundro <[email protected]>
AuthorDate: Sun Apr 30 03:30:04 2023 +0800

    update thrift_doc
    
    use `-Wno-error` to ignore the diagnose info.
    
    Signed-off-by: clundro <[email protected]>
---
 docs/cn/thrift.md | 9 +++++----
 docs/en/thrift.md | 9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/docs/cn/thrift.md b/docs/cn/thrift.md
index 45275ea7..dcae34a5 100755
--- a/docs/cn/thrift.md
+++ b/docs/cn/thrift.md
@@ -18,10 +18,11 @@ brpc默认不启用thrift支持也不需要thrift依赖。但如果需用thrift
 Linux下安装thrift依赖
 
先参考[官方wiki](https://thrift.apache.org/docs/install/debian)安装好必备的依赖和工具,然后从[官网](https://thrift.apache.org/download)下载thrift源代码,解压编译。
 ```bash
-wget http://www.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz
-tar -xf thrift-0.11.0.tar.gz
-cd thrift-0.11.0/
-./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
+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/
+./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
 sudo make install
 ```
diff --git a/docs/en/thrift.md b/docs/en/thrift.md
index c1d4dce8..94ff551e 100755
--- a/docs/en/thrift.md
+++ b/docs/en/thrift.md
@@ -18,10 +18,11 @@ 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 http://www.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz
-tar -xf thrift-0.11.0.tar.gz
-cd thrift-0.11.0/
-./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
+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/
+./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
 sudo make install
 ```


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to