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:
1export LD_LIBRARY_PATH=/usr/local/kaezstd/lib:$LD_LIBRARY_PATH
- Specify the location for loading libkaezstd.so for the application layer during compilation. The following compilation options are used for linking:
- 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:
1export 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
- Set the following environment variable:
Parent topic: Application Cases