Nebula is developed based C++14, so it requires a compiler supporting C++14 features.
- Fedora 29, 30
- Centos 6.5, 7.5
- Ubuntu 16.04, 18.04
When building type is DEBUG, suggestion reserve disk space is 30G at least.
bash> git clone https://github.com/vesoft-inc/nebula.git
The script build_dep.sh
bellow depends on the cloud Open-Storage-Service (OSS)
bash> cd nebula && ./build_dep.sh
- Install others through local sources
bash> cd nebula && ./build_dep.sh N
- Download the corresponding version of the dependency package
- Install the package
tar xf ${package_name}.tar.gz
cd ${package_name} && ./install.sh
bash> source ~/.bashrc
bash> mkdir build && cd build
bash> cmake ..
bash> make
bash> sudo make install
bash> cmake -DCMAKE_BUILD_TYPE=Release ..
bash> make
bash> sudo make install
-
If no errors are shown
[100%] Built target ....
Congratulations! Compile successfully...
-
You can see there are four folders in the the installation directory /usr/local/nebula: etc/, bin/, scripts/, share/.
[root@centos7.5 nebula]# ls /usr/local/nebula/ bin etc scripts share
Now, you can start nebula!
- Modify ~/.bashrc by appending following line to the end
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
- Update ~/.bashrc
bash> source ~/.bashrc
Error info: [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- do
java -version
get your java jdk version - if your java version is not
1.8.0_xxx
, please install it
sudo apt-get -y install openjdk-8-jdk
sudo yum -y install java-1.8.0-openjdk
sudo update-alternatives --config java
and select the java-1.8.0-openjdk/java-8-openjdk
You need to compile the third-party by yourself, the installation path is /opt/nebula/third-party
Step 1: Download third-party src package
bash> wget https://nebula-graph.oss-accelerate.aliyuncs.com/third-party/nebula-3rdparty.tar.gz
Step 2: Build third-party
bash> tar xf nebula-3rdparty.tar.gz && cd nebula-3rdparty
bash> ./install_deps.sh
bash> cmake ./
bash> sudo make
Step 3: Configure the project's environment variables and download other dependencies
bash> cd nebula && ./build_dep.sh N
bash> source ~/.bashrc
bash> mkdir build && cd build
bash> cmake ..
bash> make