ITPub博客

首页 > 数据库 > 国内数据库 > Error while loading shared libraries: libreadline.so.7: cannot open shared objec

Error while loading shared libraries: libreadline.so.7: cannot open shared objec

国内数据库 作者:Haoword_wang 时间:2022-11-27 15:18:58 0 删除 编辑
  • OpenGuass 版本:3.1.0

  • OpenGuass 部署架构:一主一备

  • 主机类型:openEuler 20.03 (LTS-SP3)

  • Python 版本:3.7.9

  • db01 主节点  db02 备节点

第一 报错信息:

[root@db01 script]# ./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/cluster_config.xml
Parsing the configuration file.
Successfully parsed the configuration file.
Installing the tools on the local node.
Successfully installed the tools on the local node.
Are you sure you want to create trust for root (yes/no)?yes
Please enter password for root
Password:
[GAUSS-51632] : Failed to do gs_sshexkey.Error: Please enter password for current user[root].
Checking network information.
All nodes in the network are Normal.
Successfully checked network information.
Creating SSH trust.
Creating the local key file.
Creating the local key file.
Creating the local key file.
Error: Failed to create public private keyfile,output is [Failed to encrypt secret words, error:./encrypt: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory.]

第二 错误分析:

通过报错明显可以发现是无法找到libreadline.so.7,通过系统查找确认没有该包,当前已经是 libreadline.so.8,可能是因为我的系统版本高,官方要求的版本是 openEuler 20.03LTS,而我安装的是 openEuler 20.03 (LTS-SP3)

第三 解决方法:

第一种方法:降低版本,但无法确定系统是否可行,是否影响系统(未验证)

第二种方法:创建软链接,创建 libreadline.so. 7 软链接指向 libreadline.so.8,但该方法 无法确认是否影响数据库的稳定性和其他方面的功能,需要官方进行说明(已验证)

                        [root@db01 script]# ln -s  /usr/lib64/libreadline.so.8  /usr/lib64/libreadline.so.7

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26342786/viewspace-2925350/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle Postgresql MySQL DBA,DEVOPS 开发人员

注册时间:2013-03-03

  • 博文量
    73
  • 访问量
    69163