Installing gpbackup reports error "rpm: symbol lookup error: /lib64/libelf.so.1: undefined symbol: ZSTD_compressStream2"
search cancel

Installing gpbackup reports error "rpm: symbol lookup error: /lib64/libelf.so.1: undefined symbol: ZSTD_compressStream2"

book

Article ID: 296914

calendar_today

Updated On:

Products

VMware Tanzu Greenplum

Issue/Introduction

When installing gpbackup package using gppkg utility it may report the error similar to:
stdout='', stderr='rpm: symbol lookup error: /lib64/libelf.so.1: undefined symbol: ZSTD_compressStream2
Example output:
[gpadmin@mdw]$ gppkg -i greenplum_backup_restore-1.30.0-gp6-rhel8-x86_64.gppkg
20240201:13:40:33:3612955 gppkg:mdw:gpadmin-[INFO]:-Starting gppkg with args: -i greenplum_backup_restore-1.30.0-gp6-rhel8-x86_64.gppkg
20240201:13:40:33:3612955 gppkg:mdw:gpadmin-[INFO]:-Installing package greenplum_backup_restore-1.30.0-gp6-rhel8-x86_64.gppkg
20240201:13:40:34:3612955 gppkg:mdw:gpadmin-[INFO]:-Validating rpm installation cmdStr='rpm --test -i /usr/local/greenplum-db-6.24.3/.tmp/gpbackup_tools_RHEL8-1.30.0-1.x86_64.rpm --dbpath /usr/local/greenplum-db-6.24.3/share/packages/database --prefix /usr/local/greenplum-db-6.24.3' 
20240201:13:40:34:3612955 gppkg:mdw:gpadmin-[CRITICAL]:-Error occurred: non-zero rc: 127 Command was: 'rpm --test -i /usr/local/greenplum-db-6.24.3/.tmp/gpbackup_tools_RHEL8-1.30.0-1.x86_64.rpm --dbpath /usr/local/greenplum-db-6.24.3/share/packages/database --prefix /usr/local/greenplum-db-6.24.3' rc=127, stdout='', stderr='rpm: symbol lookup error: /lib64/libelf.so.1: undefined symbol: ZSTD_compressStream2

 


Environment

Product Version: 6.24

Resolution

Workaround:

An alternative workaround for this issue is to temporarily edit the greenplum_path.sh.

On all hosts, update the greenplum_path.sh file to add the below line to the end of the file.

export LD_LIBRARY_PATH=

The gppkg command can then be run. After the gppkg command has been completed, the line should be removed from the greenplum_path.sh.

Fix:

This issue is fixed in Greenplum v6.26.1 and above.