本文介绍在centos-8上从源码构建安装oepnGauss-3.0.0的过程。
1、安装依赖包
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、添加openGauss用户
useradd openGauss
3、下载三方依赖包
# 切换到openGauss用户
su - openGauss
# 下载三方依赖包
wget https://opengauss.obs.cn-south-1.myhuaweicloud.com/3.0.0/openGauss-third_party_binarylibs.tar.gz
# 解压三方包并重命名
tar -zxf openGauss-third_party_binarylibs.tar.gz
mv openGauss-third_party_binarylibs binarylibs
4、下载openGauss-server源码
# 下载openGauss-server源码
git clone https://gitee.com/opengauss/openGauss-third_party.git
# 切换到3.0.0版本的tag
git checkout 3.0.0
5、在~/.bashrc中添加如下环境变量
export CODE_BASE=/home/openGauss/openGauss-server
export BINARYLIBS=/home/openGauss/binarylibs
export GAUSSHOME=/home/o