0
点赞
收藏
分享

微信扫一扫

openGauss-server-v3.0.0系列-源码编译01

​​1.​setup hostname​

# hostnamectl set-hostname ogsdb01

# more /etc/redhat-release  

CentOS Linux release 7.6.1810 (Core)  

# uname -r

3.10.0-957.el7.x86_64

#

2.​install os packages​

# yum install perl libaio-devel flex bison ncurses-devel glibc-devel patch redhat-lsb-core readline-devel zlib-devel openssl-devel

-- download 3rd  

https://opengauss.obs.cn-south-1.myhuaweicloud.com/3.0.0/openGauss-third_party_binarylibs.tar.gz

-- download ogs 3.0  

https://gitee.com/opengauss/openGauss-server/repository/blazearchive/v3.0.0.tar.gz?Expires=1648972611&Signature=ALJZGYN1rauonQczJJHp1pOKRmam%2FjgBFsNo8djAKOk%3D

3.uncompress database packages

-- uncompress 3rd binarylibs

# tar zxf openGauss-third_party_binarylibs.tar.gz

-- uncompress ogs 3.0

# tar zxvf openGauss-server-v3.0.0.tar.gz


4.set compile ENV

# export GAUSSHOME=/opt/openGauss/3.0.0

# export BINARYLIBS=/root/openGauss-third_party_binarylibs

# export GCC_PATH=$BINARYLIBS/buildtools/centos7.6_x86_64/gcc7.3/

# export CC=$GCC_PATH/gcc/bin/gcc

# export 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_PATH

# export PATH=$GAUSSHOME/bin:$GCC_PATH/gcc/bin:$PATH


5.compile, install opsdb

# cd openGauss-server-v3.0.0

# ./configure --gcc-version=7.3.0 CC=g++ CFLAGS="-O2 -g3" --prefix=$GAUSSHOME --3rd=$BINARYLIBS --enable-thread-safety --with-readline --without-zlib

# make -j 4

# make install

举报

相关推荐

0 条评论