当前位置:网站首页>Opengauss version 3.0 source code compilation and installation guide

Opengauss version 3.0 source code compilation and installation guide

2022-06-24 04:10:00 openGauss

openGauss 3.0 Version from 4 month 1 It has been widely concerned by my friends since it was launched on the Internet on the th , This article will introduce you to centos-8 Build and install from the source code on openGauss 3.0 Enterprise process .

1、 Install dependency packages

    yum install -y libaio-devel ncurses-devel pam-devel libffi-devel python3-devel libtool libtool-ltdl openssl-devel bison flex glibc-devel patch readline-devel lsb_release

2、 add to openGauss user

    useradd openGauss

3、 Download the tripartite dependency package

    #  Switch to openGauss user   su - openGauss  #  Download the tripartite dependency package   wget https://opengauss.obs.cn-south-1.myhuaweicloud.com/3.0.0/openGauss-third_party_binarylibs.tar.gz  #  Unzip the third-party package and rename it   tar -zxf openGauss-third_party_binarylibs.tar.gz   mv openGauss-third_party_binarylibs binarylibs

4、 download openGauss-server Source code

  #  download openGauss-server Source code   git clone https://gitee.com/opengauss/openGauss-third_party.git  #  Switch to 3.0.0 Version of tag  git checkout 3.0.0

5、 stay ~/.bashrc Add the following environment variables

export CODE_BASE=/home/openGauss/openGauss-serverexport BINARYLIBS=/home/openGauss/binarylibsexport GAUSSHOME=/home/openGauss/install/export GCC_PATH=$BINARYLIBS/buildtools/centos7.6_x86_64/gcc7.3/export CC=$GCC_PATH/gcc/bin/gccexport CXX=$GCC_PATH/gcc/bin/g++export LD_LIBRARY_PATH=$GAUSSHOME/lib:$GCC_PATH/gcc/lib64:$GCC_PATH/isl/lib:$GCC_PATH/mpc/lib/:$GCC_PATH/mpfr/lib/:$GCC_PATH/gmp/lib/:$LD_LIBRARY_PATHexport PATH=$GAUSSHOME/bin:$GCC_PATH/gcc/bin:$PATH

6、 Carry out orders source ~/.bashrc Enable environment variables

7、 Get into openGauss-server Catalog , Execute the following command , Perform configuration compilation

./configure --gcc-version=7.3.0 CC=g++ CFLAGS='-O0' --prefix=$GAUSSHOME --3rd=$BINARYLIBS --enable-debug --enable-cassert --enable-thread-safety --with-readline --without-zlibmake -sj 8

8、 perform make install install openGauss database

9、 Create a data directory , And initialize the database

mkdir /home/openGauss/install/datags_initdb -D /home/openGauss/install/data/datanode1  --nodename=datanode1

10、 After successful initialization , It is shown as follows

11、 Now you can start the database , The start and stop commands are as follows

gs_ctl start -D /home/openGauss/install/data/datanode1 -Z single_node -l /home/openGauss/gauss.loggs_ctl stop -D /home/openGauss/install/data/datanode1

The problem record

1、 If the compilation times an error , newspaper python The file could not be found , You can install python2, And will python2 The soft connection is python

yum install python2ln -s /usr/bin/python2 /usr/bin/python

2、gs_initdb The initialization error is as follows , Need to install libnsl rely on

3、gs_initdb An error is as follows , The configuration file needs to be modified /etc/profile, Added at the end LANG Set up , Set to locale -a The value that can be found is enough , such as en_US.utf8

export LANG=en_US.utf8

Welcome to visit openGauss Official website

openGauss Open source community official website :

https://opengauss.org

openGauss Organization warehouse :

https://gitee.com/opengauss

openGauss Mirror warehouse :

https://github.com/opengauss-mirror

Scan the code and follow us

WeChat official account |openGauss

Wechat community assistant |openGauss-bot

This article is from WeChat official account. - openGauss(openGauss).
If there is any infringement , Please contact the [email protected] Delete .
Participation of this paper “OSC Source creation plan ”, You are welcome to join us , share .

原网站

版权声明
本文为[openGauss]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206232306578537.html