本文主要是介绍OpenGuass under Ubuntu_22.04 install tutorial,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
今天开始短学期课程:数据库课程设计。今天9点左右在SL1108开课,听陈老师讲授了本次短学期课程的要求以及任务安排,随后讲解了国产数据库的三层架构的逻辑。配置了大半天才弄好,放一张成功的图片,下面开始记录成功的步骤:

My operator system is Ubuntu_22.04.

procedures
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!)
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
=>
sudo chown -R $(whoami):$(whoami) /db/software/openGauss
sudo 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.10andlibcrypto.so.10are pointing tolibssl.so.1.1andlibcrypto.so.1.1, respectively. This is the root of the issue, aslibssl.so.1.1andlibcrypto.so.1.1are not compatible with what openGauss is expecting. The software specifically requireslibssl.so.10andlibcrypto.so.10, which correspond to an older version of OpenSSL (1.0.x).
=>


sudo rm /usr/lib/x86_64-linux-gnu/libssl.so.10
sudo 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/null
sudo 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.10
sudo ln -s /usr/lib64/libcrypto.so.10 /usr/lib/x86_64-linux-gnu/libcrypto.so.10
sudo ldconfig
Avoid Warnings:
export GAUSSLOG=/db/software/openGauss/logs
mkdir -p $GAUSSLOG
sudo mkdir -p /var/lib/opengauss/core
sudo chmod 777 /var/lib/opengauss/core
export GAUSS_CORE_PATH=/var/lib/opengauss/core
echo 'export GAUSSLOG=/db/software/openGauss/logs' >> ~/.bashrc
echo 'export GAUSS_CORE_PATH=/var/lib/opengauss/core' >> ~/.bashrc
source ~/.bashrc
这篇关于OpenGuass under Ubuntu_22.04 install tutorial的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!