Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 1.resource-preparations.md #846

Merged
merged 2 commits into from
Oct 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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