Installing SRA_Recall
This section describes how to install SRA_Recall 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 SRA_Recall software package by referring to Obtaining the Software Package and decompress it to obtain the binary RPM package.
- Install the RPM package.
1rpm -ivh boostkit-sra_recall-xxxx.aarch64.rpm
After the installation, the environment variable LD_LIBRARY_PATH is automatically appended to the /etc/profile. This means the /usr/local/sra_recall/lib directory (to the dynamic library file of KBest) and the /usr/local/sra_recall/lib/kscann directory (to the dynamic and static library library files of KScaNN) are added to the variable.
In the preceding command, xxxx indicates the version.
- Install the WHL file.
1pip install kbest-xxxx-cp39-cp39-linux_aarch64.whl
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 KBest installation path /usr/local/sra_recall/lib and the KScaNN installation path /usr/local/sra_recall/lib/kscann.
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_recall). The include folder contains the header file of KBest, and the lib folder contains the dynamic library file of KBest. The include/kscann folder contains the header file of KScaNN, and the lib/kscann folder contains the dynamic and static library files of KScaNN.
- Run the pip show command to check whether KBest of the xxxx version has been installed. xxxx indicates the version number.
1pip show kbest
If the command output contains "Name: kbest Version: xxxx", the installation is successful.