当前位置:网站首页>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 .
边栏推荐
- The use of char[0] and char[1] in C language structure
- The results of the 2022 open source summer were announced, and 449 college students will contribute to open source projects
- 黑帽SEO实战之目录轮链批量生成百万页面
- Tell you about mvcc
- [Numpy] Numpy对于NaN值的判断
- Methods of creating and modifying shell script files in batch
- How EDI changes supply chain management
- 2. in depth tidb: entry code analysis and debugging tidb
- Web penetration test - 5. Brute force cracking vulnerability - (7) MySQL password cracking
- What is a 1U server? What industries can 1U servers be used in?
猜你喜欢

Application practice | Apache Doris integrates iceberg + Flink CDC to build a real-time federated query and analysis architecture integrating lake and warehouse

Installation of pytorch in pycharm

How can the new generation of HTAP databases be reshaped in the cloud? Tidb V6 online conference will be announced soon!

Old popup explorer Exe has stopped working due to problems. What should I do?

讲讲我的不丰富的远程办公经验和推荐一些办公利器 | 社区征文

Modstartcms enterprise content site building system (supporting laravel9) v4.2.0

Black hat SEO practice: General 301 weight PR hijacking

Changjiang Dayong, director of openeuler community: jointly promote the new open source model of Euler and jointly build a new open source system

开源之夏2022中选结果公示,449名高校生将投入开源项目贡献

黑帽SEO实战之通用301权重pr劫持
随机推荐
How to remote server is the price of the server expensive
Halcon knowledge: contour operator on region (2)
Cloud development CMS Enterprise Edition demand survey
Pycharm from installation to full armament
Application practice | Apache Doris integrates iceberg + Flink CDC to build a real-time federated query and analysis architecture integrating lake and warehouse
Common content of pine script script
多任务视频推荐方案,百度工程师实战经验分享
The first 2021 Western cloud security summit is coming! See you in Xi'an on September 26!
How can the new generation of HTAP databases be reshaped in the cloud? Tidb V6 online conference will be announced soon!
Unable to access the CVM self built container outside the TKE cluster pod
Tencent ECS installs the Minio object storage tool
Several good books for learning data
讲讲我的不丰富的远程办公经验和推荐一些办公利器 | 社区征文
Prometheus pushgateway
How to monitor the operation of easygbs service in real time?
Use the fluxbox desktop as your window manager
Understanding of structure in C language
How to identify information more quickly and accurately through real-time streaming media video monitoring?
How to gracefully handle and return errors in go (1) -- error handling inside functions
开源一款监控数据采集器,啥都能监控