今天开始短学期课程:数据库课程设计。今天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.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).
=> 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
