Skip to content

Commit

Permalink
Update 3.nebula-cpp-client.md (#1792)
Browse files Browse the repository at this point in the history
* Update 3.nebula-cpp-client.md

* Update 3.nebula-cpp-client.md

* Update 3.nebula-cpp-client.md

* Update 3.nebula-cpp-client.md

* Update docs-2.0/14.client/3.nebula-cpp-client.md

Co-authored-by: cooper-lzy <[email protected]>

Co-authored-by: cooper-lzy <[email protected]>
  • Loading branch information
abby-cyber and cooper-lzy authored May 11, 2022
1 parent 2a2aed3 commit deac0fc
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions docs-2.0/14.client/3.nebula-cpp-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

[Nebula CPP](https://github.com/vesoft-inc/nebula-cpp/tree/{{cpp.branch}}) 是一款 C++ 语言的客户端,可以连接、管理 Nebula Graph 图数据库。

## 前提条件

- 已安装 C++,GCC 版本为 4.8 及以上。

- 编译安装需要准备正确的编译环境,详情请参见[软硬件要求和安装三方库依赖包](../4.deployment-and-installation/1.resource-preparations.md)
## 使用限制

请确保已安装 C++ 且 GCC 版本为 4.8 及以上。

## 版本对照表

Expand All @@ -19,9 +17,18 @@

## 安装 Nebula CPP

本文介绍通过编译方式安装 Nebula CPP。

### 前提条件

- 准备正确的编译环境,详情请参见[软硬件要求和安装三方库依赖包](../4.deployment-and-installation/1.resource-preparations.md)
- 确保已安装 C++ 且 GCC 版本为:{10.1.0 | 9.3.0 | 9.2.0 | 9.1.0 | 8.3.0 | 7.5.0 | 7.1.0}。详情请参见 [gcc_preset_versions 参数](https://github.com/vesoft-inc/nebula-cpp/blob/{{cpp.tag}}/third-party/install-third-party.sh)

### 安装步骤

1. 克隆 Nebula CPP 源码到机器。

- (推荐)如果需要安装指定版本的 Nebula CPP,请使用选项`--branch`指定分支。例如安装 v{{ cpp.release }}发布版本,请执行如下命令:
- (推荐)如果需要安装指定版本的 Nebula CPP,请使用选项`--branch`指定分支。例如安装 {{ cpp.tag }}发布版本,请执行如下命令:

```bash
$ git clone --branch {{cpp.branch}} https://github.com/vesoft-inc/nebula-cpp.git
Expand Down Expand Up @@ -101,7 +108,7 @@
$ LIBRARY_PATH=/usr/local/nebula/lib64:$LIBRARY_PATH g++ -std=c++11 SessionExample.cpp -I/usr/local/nebula/include -lnebula_graph_client -o session_example
```

### 核心代码
## 核心代码

详细示例请参见 [SessionExample](https://github.com/vesoft-inc/nebula-cpp/blob/{{cpp.branch}}/examples/SessionExample.cpp)。

0 comments on commit deac0fc

Please sign in to comment.