Installing KSL
This section describes how to install KSL using an RPM package and verify KSL after the installation.
Procedure
- Obtain the KSL software package by referring to Obtaining the Software Package and decompress it to obtain the binary RPM package.
- Install KSL.
rpm -ivh boostkit-ksl-xxxx.aarch64.rpm
After the installation, the system automatically adds the path to the lib folder, that is, /usr/local/ksl/lib, to the environment variable LD_LIBRARY_PATH.
In the preceding command, xxxx indicates the version number.
Verifying the Installation
- Run the source command or log in to the terminal again for the environment variables to take effect.
source /etc/profile
- Check whether the environment variable LD_LIBRARY_PATH contains the KSL installation path /usr/local/ksl/lib.
env | grep LD_LIBRARY_PATH
If the command output contains the installation path, the installation is successful.
LD_LIBRARY_PATH=/usr/local/ksl/lib:
After the installation, the corresponding files are generated in the installation path (the default path is /usr/local/ksl). The include folder contains the header files of the sub-libraries, the lib folder contains the dynamic library files of KSL, and the bin folder contains the compilation CLI of KSL_ASN1.
- Add the path of the dynamic library to the GCC compilation option to link the required dynamic library file. Then run the ldd command to check that the dependency library of the program is correctly linked.
- To use AVX2KI, add the following information:
- For the version automatically adapted to the current server: -L /usr/local/ksl/lib -lavx2ki
- For the
NEON instruction implemented version: -L /usr/local/ksl/lib -lavx2neon
- To use KQMalloc, add the following information:
- For single-threaded applications: -L /usr/local/ksl/lib -lkqmalloc
- For multi-threaded applications: -L /usr/local/ksl/lib -lkqmallocmt
- To use HTL, add -L /usr/local/ksl/lib -lhtl.
- To use KSL_ASN1, add -L /usr/local/ksl/lib -lhiasn1.
- To use the compilation tool of KSL_ASN1, find the asn1rs-cli binary file in the /usr/local/ksl/bin directory. For details, see Using the Compilation Tool.
- To use AVX2KI, add the following information:
Parent topic: Using KSL