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
- Use PuTTY to log in to the server as the root user.
- Run the following command to specify the HTSlib address:
export LD_LIBRARY_PATH=/path/to/HTSLIB/htslib-1.9:$LD_LIBRARY_PATH