在安装过程中关键步骤执行gs_preinstall,为安装做准备操作。
在执行这个脚本时,遇到了如下报错:
报错一:
python版本问题,这个在官方手册中也有说明,对于Centos 7.6来说,必须是3.6版本。
如果版本不对,在执行时,会报错如下:
[root@enmoedu1 script]# python gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/clusterconfig.xml Traceback (most recent call last): File "gs_preinstall", line 29, in <module> checkPythonVersion() File "/opt/software/openGauss/script/gspylib/common/CheckPythonVersion.py", line 37, in checkPythonVersion distName + " should use Python 3.6.*") Exception: [GAUSS-52200] : version of python is not correct: Linux-3.10.0-957.el7.x86_64-x86_64-with-centos-7.6.1810-Core. should use Python 3.6.*
复制
解决:
方式一:
最好是配置可以连接外网,利用外网yum源安装openssl-devel包,python3
注:Centos是自带外网yum源的,所以不用配置yum,只需要配置好外网直接执行yum安装就可以。
执行:
yum install openssl* python3*
校验版本:
[root@enmoedu1 yum.repos.d]# python3 -V
Python 3.6.8
方式二:
安装openssl-devel包
下载源码Python-3.6.10.tgz 安装包
先进行解压,进入解压目录,依次执行./configure --with-ssl ,make &make install
无论是第一种方式解决,还是第二种方式解决,关键步骤,一定要安装openssl-devel包,否则在执行pre_install时会提示不能加载ssl模块的错误。可以在安装完python3之后,通过以下步骤检查:
[omm@enmoedu1 ~]$ python3 Python 3.6.10 (default, Jun 24 2020, 22:26:52) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ssl
复制
报错二:
[FAILURE] enmoedu1.enmotech.com: [GAUSS-50202] : The /opt/gaussdb must be empty. Or user [omm] has write permission to directory /opt/gaussdb. Because it will create symbolic link [/opt/gaussdb/app] to install path [/opt/gaussdb/app_38a9312a] in gs_install process with this user.
复制
解决:
[root@enmoedu1 yum.repos.d]# rm -rf /opt/gaussdb [root@enmoedu1 yum.repos.d]# chmod 775 /opt -R [root@enmoedu1 yum.repos.d]# chown omm:dbgrp /opt -R
复制
报错三:
[GAUSS-51632] : Failed to do python3 '/opt/software/openGauss/script/local/LocalCheckOS.py' -t Check_Firewall_Service -l '/var/log/gaussdb/omm/om/gs_local.log' . Error: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
复制
解决:
[root@enmoedu1 om]# export LC_CTYPE=en_US.UTF-8
最后修改时间:2020-06-30 10:20:24
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
评论
相关阅读
2025年3月国产数据库大事记
墨天轮编辑部
876次阅读
2025-04-03 15:21:16
MogDB 发布更新,解决 openGauss 数据库在长事务情况下Ustore表膨胀问题
MogDB
287次阅读
2025-04-17 10:41:41
openGauss 7.0.0-RC1 版本正式发布!
Gauss松鼠会
205次阅读
2025-04-01 12:27:03
MogDB 发布更新,解决 openGauss 数据库在长事务情况下Ustore表膨胀问题
云和恩墨
186次阅读
2025-04-16 09:52:02
openGauss 7.0.0-RC1 版本体验:一主一备快速安装指南
孙莹
180次阅读
2025-04-01 10:30:07
鲲鹏RAG一体机解决方案正式发布 openGauss DataVec向量数据库助力DeepSeek行业应用
Gauss松鼠会
124次阅读
2025-03-31 10:00:29
荣誉时刻!openGauss认证证书快递已发,快来看看谁榜上有名!
墨天轮小教习
111次阅读
2025-04-23 17:39:13
openGauss6.0.0适配操作系统自带的软件,不依赖三方库
来杯拿铁
75次阅读
2025-04-18 10:49:53
opengauss使用gs_probackup进行增量备份恢复
进击的CJR
70次阅读
2025-04-09 16:11:58
Postgresql数据库单个Page最多存储多少行数据
maozicb
59次阅读
2025-04-23 16:02:19