OpenGuass 版本:5
OpenGuass 部署架构:一主一备
主机类型:openEuler 22
补丁信息:无
报错代码:GAUSS-52200
Python 版本:3.7
报错:
[root@Opengauss5Master script]# ./gs_preinstall -U openguass -G openguass -X /opt/software/cluster_config.xml
Traceback (most recent call last):
File "./gs_preinstall", line 31, in <module>
check_python_compiler_option()
File "/opt/software/script/gspylib/common/CheckPythonVersion.py", line 37, in check_python_compiler_option
carry the -enable-shared parameters")
Exception: [GAUSS-52200] : When compiling python, carry the -enable-shared parameters
百度文章:OpenGuass Exception: [GAUSS-52200] : When compiling python_ITPUB博客
http://blog.itpub.net/26342786/viewspace-2925052/
错误提示 python 安装的时候需要同时带两个参数:carry the -enable-shared and -fpic parameters
而openguass 官方文档提醒需要 -enable-shared,如以下
重启编译加上参数:-enable-shared 测试
[root@Opengauss5Master script]# rm -fr /usr/bin/python
[root@Opengauss5Master software]# rm -fr Python-3.7.0
[root@Opengauss5Master software]# tar -zxvf Python-3.7.0.tgz
[root@Opengauss5Master software]# cd Python-3.7.0/
[root@Opengauss5Master Python-3.7.0]# ./configure -enable-shared
[root@Opengauss5Master Python-3.7.0]# make
[root@Opengauss5Master Python-3.7.0]# make install
[root@Opengauss5Master Python-3.7.0]# ln -s /usr/local/bin/python3.7 /usr/bin/python
[root@Opengauss5Master script]# ./gs_preinstall -U openguass -G openguass -X /opt/software/cluster_config.xml
python3: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
[root@Opengauss5Master script]# cp -a ../Python-3.7.0/libpython3.7m.so.1.0 /usr/lib64/
[root@Opengauss5Master script]# ./gs_preinstall -U openguass -G openguass -X /opt/software/cluster_config.xml
Traceback (most recent call last):
File "./gs_preinstall", line 31, in <module>
check_python_compiler_option()
File "/opt/software/script/gspylib/common/CheckPythonVersion.py", line 37, in check_python_compiler_option
carry the -enable-shared parameters")
Exception: [GAUSS-52200] : When compiling python, carry the -enable-shared parameters
还是报相同的错误