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

Error "error while loading shared libraries" Reported During Test Execution

Symptom

An error message similar to "error while loading shared libraries: libhts.so.2: cannot open shared object file: No such file or directory" is displayed during the test.

Key Process and Cause Analysis

The HTSlib environment variables are not added.

Conclusion and Solution

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to specify the HTSlib address:

    export LD_LIBRARY_PATH=/path/to/HTSLIB/htslib-1.9:$LD_LIBRARY_PATH