diff --git a/docs-2.0/4.deployment-and-installation/1.resource-preparations.md b/docs-2.0/4.deployment-and-installation/1.resource-preparations.md index db451ceb1fc..91d18110994 100644 --- a/docs-2.0/4.deployment-and-installation/1.resource-preparations.md +++ b/docs-2.0/4.deployment-and-installation/1.resource-preparations.md @@ -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`.