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-mode 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 location for loading libz.so for the application layer during compilation. The following compilation options are used 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