Installing KRL
This section describes how to install KRL using the RPM package and verify the package. If you use parameters that are supported by the RPM package management tool but not described in this document, undefined behaviors may be introduced. Exercise caution when performing this operation.
Procedure
- Obtain the KRL software package by performing Obtaining the Software Package and decompress it to obtain the binary RPM package.
- Install the RPM package.
1rpm -ivh boostkit-sra_krl-xxxx.aarch64.rpm
After the installation is complete, the environment variable LD_LIBRARY_PATH is automatically added to /etc/profile, that is, the /usr/local/sra_krl/lib directory where the KRL dynamic library file is stored.
In the preceding command, xxxx indicates the version.
Verification
- Run the source command or log in to the terminal again for the environment variable to take effect.
1source /etc/profile
- Check whether the environment variable LD_LIBRARY_PATH contains the KRL installation path /usr/local/sra_krl/lib.
1env | grep LD_LIBRARY_PATH
If the variable contains those installation paths, the installation is successful.
After the installation, the target files are generated in the installation path (the default path is /usr/local/sra_krl), where the include folder contains the KRL header files, and the lib folder contains the KRL dynamic library files.