我要评分
获取效率
正确性
完整性
易理解

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

  1. Obtain the SRA_Recall software package by referring to Obtaining the Software Package and decompress it to obtain the binary RPM package.
  2. Install the RPM package.
    1
    rpm -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.

  3. Install the WHL file.
    1
    pip install kbest-xxxx-cp39-cp39-linux_aarch64.whl
    

    In the preceding command, xxxx indicates the version.

Verification

  1. Run the source command or log in to the terminal again for the environment variable to take effect.
    1
    source /etc/profile
    
  2. 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.
    1
    env | 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.

  3. Run the pip show command to check whether KBest of the xxxx version has been installed. xxxx indicates the version number.
    1
    pip show kbest
    

    If the command output contains "Name: kbest Version: xxxx", the installation is successful.