Skip to content

Commit

Permalink
Update 1.resource-preparations.md (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
abby-cyber authored Oct 27, 2021
1 parent 91db748 commit 5efc6e4
Showing 1 changed file with 35 additions and 34 deletions.
69 changes: 35 additions & 34 deletions docs-2.0/4.deployment-and-installation/1.resource-preparations.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,49 +107,50 @@ This section guides you through the downloading and installation of software req

2. Check if the GCC and cmake on your host are in the right version. See [Software requirements for compiling Nebula Graph](#software_requirements_for_compiling_nebula_graph) for the required versions.


```bash
$ g++ --version
$ cmake --version
```

If your GCC and CMake are in the right version, then you are all set. If they are not, follow the sub-steps as follows.

1. Clone the `nebula` repository to your host.

```bash
$ g++ --version
$ cmake --version
$ git clone -b {{nebula.branch}} https://github.com/vesoft-inc/nebula-common.git
```

Users can use the `--branch` or `-b` option to specify the branch to be cloned. For example, for {{ nebula.release }}, run the following command.

If your GCC and CMake are in the right version, then you are all set. If they are not, follow the sub-steps as follows.
```bash
$ git clone --branch {{nebula.branch }} https://github.com/vesoft-inc/nebula-common.git
```

1. Clone the `nebula` repository to your host.
1. Make `nebula` the current working directory.

```bash
$ git clone -b {{common.branch}} https://github.com/vesoft-inc/nebula-common.git
```

Users can use the `--branch` or `-b` option to specify the branch to be cloned. For example, for {{ nebula.release }}, run the following command.

```bash
$ git clone --branch {{ nebula.branch }} https://github.com/vesoft-inc/nebula-common.git
```
```bash
$ cd nebula
```

2. Make `nebula` the current working directory.
1. Run the following commands to install and enable CMake and GCC.

```bash
$ cd nebula
```
```bash
// Install CMake.
$ ./third-party/install-cmake.sh cmake-install
3. Run the following commands to install and enable CMake and GCC.
// Enable CMake.
$ source cmake-install/bin/enable-cmake.sh
```bash
// Install CMake.
$ ./third-party/install-cmake.sh cmake-install
// Enable CMake.
$ source cmake-install/bin/enable-cmake.sh
// Authorize the write privilege to the opt directory.
$ sudo mkdir /opt/vesoft && sudo chmod -R a+w /opt/vesoft
// Install GCC. Installing GCC to the opt directory requires the write privilege. And users can change it to other locations.
$ ./third-party/install-gcc.sh --prefix=/opt
// Enable GCC.
$ source /opt/vesoft/toolset/gcc/7.5.0/enable
```
// Authorize the write privilege to the opt directory.
$ sudo mkdir /opt/vesoft && sudo chmod -R a+w /opt/vesoft
// Install GCC. Installing GCC to the opt directory requires the write privilege. And users can change it to other locations.
$ ./third-party/install-gcc.sh --prefix=/opt
// Enable GCC.
$ source /opt/vesoft/toolset/gcc/7.5.0/enable
```

3. Execute the script `install-third-party.sh`.

Expand Down

0 comments on commit 5efc6e4

Please sign in to comment.