Skip to content

Commit

Permalink
Update 3.nebula-cpp-client.md (#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
abby-cyber authored May 11, 2022
1 parent 9640f19 commit 854cb8f
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 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}}) is a C++ client for connecting to and managing the Nebula Graph database.

## Prerequisites
## Limitations

- You have installed C++ and GCC 4.8 or later versions.

- You have prepared the [correct resources](../4.deployment-and-installation/1.resource-preparations.md).
You have installed C++ and GCC 4.8 or later versions.

## Compatibility with Nebula Graph

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

## Install Nebula CPP

This document describes how to install Nebula CPP with the source code.

### Prerequisites

- You have prepared the [correct resources](../4.deployment-and-installation/1.resource-preparations.md).
- You have installed C++ and GCC version is: {10.1.0 | 9.3.0 | 9.2.0 | 9.1.0 | 8.3.0 | 7.5.0 | 7.1.0}. For details, see [the gcc_preset_versions parameter](https://github.com/vesoft-inc/nebula-cpp/blob/{{cpp.tag}}/third-party/install-third-party.sh).

### Steps

1. Clone the Nebula CPP source code to the host.

- (Recommended) To install a specific version of Nebula CPP, use the Git option `--branch` to specify the branch. For example, to install v{{ cpp.release }}, run the following command:
- (Recommended) To install a specific version of Nebula CPP, use the Git option `--branch` to specify the branch. For example, to install {{ cpp.tag }}, run the following command:

```bash
$ git clone --branch {{cpp.branch}} https://github.com/vesoft-inc/nebula-cpp.git
Expand Down Expand Up @@ -101,6 +108,6 @@ Compile the CPP file to an executable file, then you can use it. The following s
$ 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
```

### Core of the example code
## Core of the example code

This sub-section shows the core of the example code. For all the code, see [SessionExample](https://github.com/vesoft-inc/nebula-cpp/blob/{{cpp.branch}}/examples/SessionExample.cpp).

0 comments on commit 854cb8f

Please sign in to comment.