Rate This Document
Findability
Accuracy
Completeness
Readability

Installing zstd from Source Code

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

  6. Install zstd.
    1
    make install
    

  7. Set environment variables.
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/include/