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

我来答
添加附件
收藏
复制链接
微信扫码分享
在小程序上查看
分享
添加附件
问题补充
12条回答
默认
最新
执行如下命令时报错, 一直输出如下问题。系统是欧拉22.03 LTS,python版本是3.7.4。
评论
有用 7路过学习,每日学习一点点,进步一点点
评论
有用 7路过学习,每日学习一点点,进步一点点
评论
有用 6采纳答案后不可修改和取消
用官方文档中的指令也报这个错么?
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采纳答案后不可修改和取消
执行下 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
评论
有用 0script\gspylib\common\CheckPythonVersion.py
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
墨值悬赏

