当前位置: 首页 > news >正文

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

相关文章:

  • 北京网站建设多少钱?
  • 辽宁网页制作哪家好_网站建设
  • 高端品牌网站建设_汉中网站制作
  • 基于Python实现AES加密与解密
  • 《QDebug 2024年8月》
  • 深度学习(二)-损失函数+梯度下降
  • 【数据结构】-----哈希
  • 【科研新手必备】如何高效、高质量、科学的科研?
  • 仿论坛项目--第二部分习题
  • JAVA进阶学习14
  • RuoYi-Cloud 部署与配置 [CentOS7]
  • 《深入浅出WPF》读书笔记.8路由事件
  • 使用pgrs在wsl中为postgres写拓展
  • huggingface.co 无法访问问题换源解决
  • c++修炼之路之C++11
  • Mac/Linux系统matplotlib中文支持问题
  • Java中类的成员介绍
  • 设计模式-结构性模式
  • [译] 怎样写一个基础的编译器
  • 【EOS】Cleos基础
  • Android开源项目规范总结
  • Javascript Math对象和Date对象常用方法详解
  • Java基本数据类型之Number
  • mac修复ab及siege安装
  • Markdown 语法简单说明
  • Redis学习笔记 - pipline(流水线、管道)
  • Theano - 导数
  • web标准化(下)
  • 百度小程序遇到的问题
  • 闭包--闭包之tab栏切换(四)
  • 从@property说起(二)当我们写下@property (nonatomic, weak) id obj时,我们究竟写了什么...
  • 番外篇1:在Windows环境下安装JDK
  • 复杂数据处理
  • 机器人定位导航技术 激光SLAM与视觉SLAM谁更胜一筹?
  • 模型微调
  • 前嗅ForeSpider中数据浏览界面介绍
  • 如何使用 OAuth 2.0 将 LinkedIn 集成入 iOS 应用
  • 我的业余项目总结
  • 译米田引理
  • ​ 无限可能性的探索:Amazon Lightsail轻量应用服务器引领数字化时代创新发展
  • ​如何在iOS手机上查看应用日志
  • (delphi11最新学习资料) Object Pascal 学习笔记---第13章第1节 (全局数据、栈和堆)
  • (LeetCode C++)盛最多水的容器
  • (ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY)讲解
  • (第27天)Oracle 数据泵转换分区表
  • (二)换源+apt-get基础配置+搜狗拼音
  • (翻译)Quartz官方教程——第一课:Quartz入门
  • (附源码)计算机毕业设计高校学生选课系统
  • (亲测有效)推荐2024最新的免费漫画软件app,无广告,聚合全网资源!
  • (转) 深度模型优化性能 调参
  • (转)ABI是什么
  • (转载)hibernate缓存
  • .net core控制台应用程序初识
  • .Net中的集合
  • @JsonFormat与@DateTimeFormat注解的使用
  • @PreAuthorize注解
  • [ Linux 长征路第二篇] 基本指令head,tail,date,cal,find,grep,zip,tar,bc,unname
  • []AT 指令 收发短信和GPRS上网 SIM508/548