我要评分
获取效率
正确性
完整性
易理解

Installing zstd from Source Code

  1. Go to the /home directory.
    cd /home
  2. 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
  3. Decompress the source package.
    tar -zxvf zstd-1.1.3.tar.gz
  4. Go to the directory generated after the decompression.
    cd zstd-1.1.3/
  5. Compile zstd.
    make -j

  6. Install zstd.
    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/