当前位置:网站首页>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_release2、 add to openGauss user
useradd openGauss3、 Download the tripartite dependency package
# Switch to openGauss usersu - openGauss# Download the tripartite dependency packagewget https://opengauss.obs.cn-south-1.myhuaweicloud.com/3.0.0/openGauss-third_party_binarylibs.tar.gz# Unzip the third-party package and rename ittar -zxf openGauss-third_party_binarylibs.tar.gzmv openGauss-third_party_binarylibs binarylibs
4、 download openGauss-server Source code
download openGauss-server Source codegit clone https://gitee.com/opengauss/openGauss-third_party.gitSwitch to 3.0.0 Version of taggit 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.utf8Welcome 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 .
边栏推荐
- Difference and efficiency between get winevent and get eventlog
- Kubernetes resource topology aware scheduling optimization
- Kubernetes 资源拓扑感知调度优化
- Go operation mongodb
- 讲讲我的不丰富的远程办公经验和推荐一些办公利器 | 社区征文
- Analysis of grafana SSO authentication process based on keyloak
- The first 2021 Western cloud security summit is coming! See you in Xi'an on September 26!
- Several good books for learning data
- Why is on-line monitoring of equipment more and more valued by people?
- Can the video streams of devices connected to easygbs from the intranet and the public network go through their respective networks?
猜你喜欢

openEuler Kernel 技术分享第 20 期 | 执行实体创建与切换

Koom of memory leak

一次 MySQL 误操作导致的事故,「高可用」都顶不住了!

Kubernetes 资源拓扑感知调度优化

黑帽SEO实战搜索引擎快照劫持

An accident caused by a MySQL misoperation, and the "high availability" cannot withstand it!

The results of the 2022 open source summer were announced, and 449 college students will contribute to open source projects

Black hat SEO actual combat directory wheel chain generates millions of pages in batch

Common content of pine script script

Black hat SEO actual combat search engine snapshot hijacking
随机推荐
flutter系列之:flutter中的offstage
Unable to access the CVM self built container outside the TKE cluster pod
Live broadcast Reservation: Micro build practice - quickly build a catering reservation applet
A problem of testing security group access in windows10
[code Capriccio - dynamic planning] t392 Judgement subsequence
黑帽SEO实战搜索引擎快照劫持
Mac CentOS installation phpredis
Go language Chanel memory model
Discussion on the introduction principle and practice of fuzzy testing
How to monitor multiple platforms simultaneously when easydss/easygbs platform runs real-time monitoring?
[Mid Autumn Festival greeting new year with good gifts] Tengyun pioneer feedback exchange group received new benefits!
[receive] new benefits of 60 yuan / year? Lowest in history! Double 11 has now begun to seize resources! Get started quickly!!
How to monitor the operation of easygbs service in real time?
2. in depth tidb: entry code analysis and debugging tidb
How to restore the default route for Tencent cloud single network card machine
Through the fog: location notes of Flink crash with a multi component timeout
JVM调优简要思想及简单案例-怎么调优
Diskpart San policy is not onlineall, which affects automatic disk hanging
C language - number of bytes occupied by structure
2021 graphic design trend: aesthetic response to chaos