Rate This Document
Findability
Accuracy
Completeness
Readability

Using the KAELz4 Library

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

  • Use KAELz4 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 KAELz4 compression library to the application layer:
    • Specify the location for loading libkaelz4.so for the application layer during compilation. The following compilation options are used for linking:
      1
      -Wl,-rpath=/usr/local/kaelz4/lib
      
    • Set the following environment variable:
      1
      export LD_LIBRARY_PATH=/usr/local/kaelz4/lib:$LD_LIBRARY_PATH
      
  • Use KAELz4 by executing its binary file.
    Compile and install the software based on Installing KAE Using Source Code. You can directly use the /usr/local/kaelz4/bin/lz4 application for compression.
    • Set the following environment variable:
      1
      export LD_LIBRARY_PATH=/usr/local/kaelz4/lib:$LD_LIBRARY_PATH
      
    • Use the application to compress files.
      1
      /usr/local/kaelz4/bin/lz4 filename compressed_file