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

wwbmmm 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 7a95e5da Update getting_started.md (#2444)
7a95e5da is described below

commit 7a95e5dab59c5e5dd2a71ed4574f1abf42d19686
Author: Wongony <245586...@qq.com>
AuthorDate: Fri Nov 10 16:57:10 2023 +0800

    Update getting_started.md (#2444)
---
 docs/cn/getting_started.md | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/docs/cn/getting_started.md b/docs/cn/getting_started.md
index 9db37688..ba6a4c84 100644
--- a/docs/cn/getting_started.md
+++ b/docs/cn/getting_started.md
@@ -31,7 +31,17 @@ sudo apt-get install -y git g++ make libssl-dev 
libgflags-dev libprotobuf-dev li
 sudo apt-get install -y libsnappy-dev
 ```
 
+如果你需要通过源码编译生成 leveldb 静态库:
+
+```shell
+git clone --recurse-submodules https://github.com/google/leveldb.git
+mkdir -p build && cd build
+cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON .. && 
cmake --build .
+sudo cp -r ../include/leveldb /usr/include/ && sudo cp libleveldb.a /usr/lib/
+```
+
 如果你要在样例中启用cpu/heap的profiler:
+
 ```shell
 sudo apt-get install -y libgoogle-perftools-dev
 ```


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to