enmotech / enmotech-docker-opengauss

Ennotech openGauss Docker Image
GNU General Public License v3.0
49 stars 28 forks source link

服务端gs_dump命令无法正常使用,报缺少依赖库 #44

Closed ISIM6 closed 1 month ago

ISIM6 commented 4 months ago

root@ded1b620e75f:/usr/local/opengauss/bin# ./gs_dump ./gs_dump: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

2756481637 commented 2 months ago

尝试一下

su omm
. ~/.profile
gs_dump

libxml2.so.2存在于usr/local/opengauss/lib中,需要修改LD_LIBRARY_PATH环境变量才能正确链接到这个文件。

用户omm.profile文件中添加了对应的PATH以及LD_LIBRARY_PATH环境变量。