---
title: 运行测试时报error while loading shared libraries错误
description: "运行测试时报错，报错信息类似：“error while loading shared libraries: libhts.so.2: cannot open shared object file: No such file or directory”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0059.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0059.html
indexId: 4d8aae173fc88061e93de457db045e886b56bf50e7cc215307592e836d8f731374
---
# 运行测试时报error while loading shared libraries错误

#### 问题现象描述

运行测试时报错，报错信息类似：“error while loading shared libraries: libhts.so.2: cannot open shared object file: No such file or directory”。


#### 关键过程、根本原因分析

未增加htslib环境变量。


#### 结论、解决方案及效果

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令指定htslib地址。
  export LD_LIBRARY_PATH=/path/to/HTSLIB/htslib-1.9:$LD_LIBRARY_PATH
