深圳市鸿华锐信息技术有限公司欢迎您!
服务创新提升价值!
百度地图| SiteMap| 知识库| 联系我们
全国服务热线:0755-88855786   深圳:13058107600

知识库

全国服务热线:
0755-88855786
深圳:
13058107600

OpenGuass Exception: [GAUSS-52200] : When compiling python

  • 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

还是报相同的错误





QQ客服在线咨询
业务咨询:
223883921
QQ客服在线咨询
技术支持:
56802890
联系方式
联系电话:
0755-88855786
微信客服
扫码二维码
返回顶部
✉ 

留言