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

Haoword_wang發表於2022-11-27
  • 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部落格 ” ,連結:http://blog.itpub.net/26342786/viewspace-2925350/,如需轉載,請註明出處,否則將追究法律責任。

相關文章