暂无图片
安装opengauss 3.1.0版本时进行gs_preinstall 预安装时报错
我来答
分享
Zoe
2023-01-09
安装opengauss 3.1.0版本时进行gs_preinstall 预安装时报错

执行如下命令时报错, 一直输出如下问题。系统是欧拉22.03 LTS,python版本是3.7.4。 


我来答
添加附件
收藏
分享
问题补充
12条回答
默认
最新
Zoe
升级问题到: 紧急故障
暂无图片 评论
暂无图片 有用 0
游湖

真的是 没有自己安装过这个,无法帮助你。路过学习下

暂无图片 评论
暂无图片 有用 6
H
hgb524

执行如下命令时报错, 一直输出如下问题。系统是欧拉22.03 LTS,python版本是3.7.4。

暂无图片 评论
暂无图片 有用 7
Z
zwx

路过学习,每日学习一点点,进步一点点

暂无图片 评论
暂无图片 有用 7
D
dyf1

路过学习,每日学习一点点,进步一点点

暂无图片 评论
暂无图片 有用 7
L
lelepapa

路过学习,每日学习一点点,进步一点点

暂无图片 评论
暂无图片 有用 6
DarkAthena

用官方文档中的指令也报这个错么?

https://docs.opengauss.org/zh/docs/3.1.0/docs/installation/%E5%88%9D%E5%A7%8B%E5%8C%96%E5%AE%89%E8%A3%85%E7%8E%AF%E5%A2%83.html

./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/cluster_config.xml
暂无图片 评论
暂无图片 有用 0
Zoe
题主
2023-01-10
是的 也报上面的错误
Zoe

1

暂无图片 评论
暂无图片 有用 0
Zoe

2

暂无图片 评论
暂无图片 有用 0
DarkAthena

执行下 uname -a ,或者用python看一下platform.platform()输出什么,因为代码里有个这样的判断

import sys import sysconfig import platform import re def checkPythonVersion(): pythonVersion = sys.version_info[0:2] distName = platform.platform() if pythonVersion < (3, 0): raise Exception("[GAUSS-52200] : version of python" " is not correct: %s." % distName + " should use Python 3.*") if re.search("oe1", distName) is not None: if not pythonVersion == (3, 7): print("Warnging version of python doesnot meet the expection, maybe third-party libs " "need to be compiled by yourself") else: if not pythonVersion == (3, 6): print("Warnging version of python doesnot meet the expection, maybe third-party libs " "need to be compiled by yourself") return True

如果操作系统信息中包含有"oe1"就要求使用py3.7,否则就要求使用py3.6

暂无图片 评论
暂无图片 有用 0
Zoe
题主
2023-01-11
有这个 >>> print(platform.platform()) Linux-5.10.0-60.18.0.50.oe2203.x86_64-x86_64-with-glibc2.34 我看官方文档环境要求 欧拉操作系统必须是python3.7.X 我的版本是3.7.4
Zoe
题主
2023-01-11
这个函数checkPythonVersion()源代码路径在哪呀? 我要不要修改成 "oe2" 适配一下我现在这种情况试试
DarkAthena
答主
2023-01-11
script\gspylib\common\CheckPythonVersion.py
Zoe

3

暂无图片 评论
暂无图片 有用 0
Zoe

3

暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏