Installing zstd from Source Code
- Go to the /home directory.
cd /home
- Obtain the zstd source package.
wget https://codeload.github.com/facebook/zstd/tar.gz/refs/tags/v1.1.3
mv v1.1.3 zstd-1.1.3.tar.gz
- Decompress the source package.
tar -zxvf zstd-1.1.3.tar.gz
- Go to the directory generated after the decompression.
cd zstd-1.1.3/
- Compile zstd.
make -j

- Install zstd.
make install

- Set environment variables.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/include/
Parent topic: Configuring the Installation Environment