运行测试时报error while loading shared libraries错误
问题现象描述
运行测试时报错,报错信息类似:“error while loading shared libraries: libhts.so.2: cannot open shared object file: No such file or directory”。
关键过程、根本原因分析
未增加htslib环境变量。
结论、解决方案及效果
- 使用PuTTY工具,以root用户登录服务器。
- 执行以下命令指定htslib地址。
export LD_LIBRARY_PATH=/path/to/HTSLIB/htslib-1.9:$LD_LIBRARY_PATH