Using the KAEZlib Library
This section provides methods of using the KAEZlib compression library in distributed storage scenarios.
After the hisi_zip kernel module, Warpdriver user-space driver, and zlib library are installed as in Software Installation (KAE 2.0) or Software Installation (KAE 1.0), you can use either of the following methods to link the zlib compression library to the application layer:
- Specify the runtime loading path of libz.so during application compilation. Use the following compilation options for linking:
1-Wl,-rpath=/usr/local/kaezip/lib/usr/local/kaezip/lib is an example path of the newly installed zlib library.
- Set the following environment variable:
1export LD_LIBRARY_PATH=/usr/local/kaezip/lib:$LD_LIBRARY_PATH
Parent topic: Software Usage