欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 房产 > 建筑 > OpenGuass under Ubuntu_22.04 install tutorial

OpenGuass under Ubuntu_22.04 install tutorial

2025/2/10 6:55:16 来源:https://blog.csdn.net/weixin_73087898/article/details/141572260  浏览:    关键词:OpenGuass under Ubuntu_22.04 install tutorial

今天开始短学期课程:数据库课程设计。今天9点左右在SL1108开课,听陈老师讲授了本次短学期课程的要求以及任务安排,随后讲解了国产数据库的三层架构的逻辑。配置了大半天才弄好,放一张成功的图片,下面开始记录成功的步骤:

My operator system is Ubuntu_22.04.

procedures

 essenital dependencies

sudo apt update
sudo apt install -y gcc g++ make cmake libaio-dev libboost-dev bison flex zlib1g-dev libcurl4-openssl-dev

 personal usage for learning version installation:

sudo wget https://opengauss.obs.cn-south-1.myhuaweicloud.com/3.0.5/x86/openGauss-3.0.5-CentOS-64bit.tar.bz2

2.sudo tar -xvjf openGauss-3.0.5-CentOS-64bit.tar.bz2

3.Find the install.sh file   --- a file guiding you finish installing.

4.bash install.sh -w "xxxx (your pswd)" && source ~/.bashrc  (CentOS is sh, a little different!) (The "install.sh" file would guide you finish the installation.)

5.gsql -d postgres -p 5432 -r

Problems during Step 4:

[step 3]: change_gausshome_owner:

chmod: changing permissions of '/db/software/openGauss': Operation not permitted  

=>  solution

sudo chown -R $(whoami):$(whoami) /db/software/openGausssudo chmod -R u+rwx /db/software/openGauss

[step 6]: init datanode

/dbopg/software/openGauss/bin/gaussdb: /lib/x86_64-linux-gnu/libssl.so.10: version `libssl.so.10' not found (required by /dbopg/software/openGauss/lib/libeSDKOBS.so)

/dbopg/software/openGauss/bin/gaussdb: /lib/x86_64-linux-gnu/libcrypto.so.10: version `libcrypto.so.10' not found (required by /dbopg/software/openGauss/lib/libeSDKOBS.so)

no data was returned by command ""/dbopg/software/openGauss/bin/gaussdb" -V"

The program "gaussdb" is needed by gs_initdb but was not found in the

same directory as "/dbopg/software/openGauss/bin/gs_initdb".

Check your installation.

The symlinks you've created for libssl.so.10 and libcrypto.so.10 are pointing to libssl.so.1.1 and libcrypto.so.1.1, respectively. This is the root of the issue, as libssl.so.1.1 and libcrypto.so.1.1 are not compatible with what openGauss is expecting. The software specifically requires libssl.so.10 and libcrypto.so.10, which correspond to an older version of OpenSSL (1.0.x).

 => solution for my issue

 

sudo rm /usr/lib/x86_64-linux-gnu/libssl.so.10sudo rm /usr/lib/x86_64-linux-gnu/libcrypto.so.10
sudo wget https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/openssl-libs-1.0.2k-19.el7.x86_64.rpm
sudo find / -name "libssl.so.10" 2>/dev/nullsudo find / -name "libcrypto.so.10" 2>/dev/null

output: /usr/lib64/libssl.so.10

             /usr/lib64/libcrypto.so.10 

sudo ln -s /usr/lib64/libssl.so.10 /usr/lib/x86_64-linux-gnu/libssl.so.10sudo ln -s /usr/lib64/libcrypto.so.10 /usr/lib/x86_64-linux-gnu/libcrypto.so.10sudo ldconfig

Avoid Warnings:

export GAUSSLOG=/db/software/openGauss/logsmkdir -p $GAUSSLOGsudo mkdir -p /var/lib/opengauss/coresudo chmod 777 /var/lib/opengauss/coreexport GAUSS_CORE_PATH=/var/lib/opengauss/coreecho 'export GAUSSLOG=/db/software/openGauss/logs' >> ~/.bashrcecho 'export GAUSS_CORE_PATH=/var/lib/opengauss/core' >> ~/.bashrcsource ~/.bashrc

Tomorrow Start

1. start the server

gs_ctl start -D /db/software/openGauss/data/single_node

2. connect 

gsql -d postgres -p 5432 -r

check the sever listening wheter 5432

sudo netstat -tuln | grep 5432

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com