Rate This Document
Findability
Accuracy
Completeness
Readability

Using the KAEZstd Library

The section provides methods of using the KAEZstd compression library.

  • Use KAEZstd by calling the compression library.
    Compile and install the software based on Software Installation (KAE 2.0). 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 Software Installation (KAE 2.0). You can directly use the /usr/local/kaezstd/bin/zstd application for decompression.
    • Set the 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
      
    • Use the application to decompress a compressed file.
      /usr/local/kaezstd/bin/zstd -d -f compressed_file -o decompressed_file