---
title: 安装zstd
description: "Greenplum可以在编译时使用zstd压缩算法来压缩数据库中的数据，以减小存储空间的占用。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdbs/ecosystemEnable/Greenplum/kunpenggreenplum_02_0009.html
sourcePath: /source/zh/kunpengdbs/ecosystemEnable/Greenplum/kunpenggreenplum_02_0009.html
indexId: e8980019d0ae86eb6e4e1c92381759810a665c11ec72234b1892f72db4f6832f77
---
# 安装zstd

Greenplum可以在编译时使用zstd压缩算法来压缩数据库中的数据，以减小存储空间的占用。

如果安装的是Greenplum 6.12.1，可以不安装zstd。

1. 下载zstd源码。
  1 2 cd /opt/tool wget https://codeload.github.com/facebook/zstd/zip/refs/tags/v1.4.3

2. 编译安装zstd。
  1 2 3 4 5 unzip v1.4.3 cd zstd-1.4.3/ make make install ln -s /usr/local/lib/libzstd.so.1.4.3 /usr/lib64/libzstd.so.1
