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

Using the KAEZstd Library

The section provides use cases and methods of the KAEZstd compression library.

  • Use KAEZstd by calling the compression library.
    Compile and install the software based on Installing KAE Using Source Code. You can use either of the following methods to link the KAEZstd compression library to the application layer:
    • Specify the location for loading libkaezstd.so for the application layer during compilation. The following compilation options are used for linking:
      1
      -Wl,-rpath=/usr/local/kaezstd/lib
      
    • Set the following environment variable:
      1
      export LD_LIBRARY_PATH=/usr/local/kaezstd/lib:$LD_LIBRARY_PATH
      
  • Use KAEZstd by executing its binary file.
    Compile and install the software based on Installing KAE Using Source Code. You can directly use the /usr/local/kaezstd/bin/zstd application for compression.
    • Set the following environment variable:
      1
      export LD_LIBRARY_PATH=/usr/local/kaezstd/lib:$LD_LIBRARY_PATH
      
    • Use the application to compress files.
      1
      /usr/local/kaezstd/bin/zstd -f filename -o compressed_file