---
title: 编译Cufflinks时报could not detect bam错误
description: "编译Cufflinks时报错，报错信息为：“error:we could not detect bam”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0056.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0056.html
indexId: 756905fe2518d3c0f03835c2da3a6a9a7dbed16f7479b28bef98f93db40a568674
---
# 编译Cufflinks时报could not detect bam错误

#### 问题现象描述

编译Cufflinks时报错，报错信息为：“error:we could not detect bam”。


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

- configure文件中判断设置错误；
- configure文件中指定通过<bam/version.hpp>来判断bam版本。


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

- configure文件中判断设置错误。
  执行以下命令修改“configure”
  文件。
  1. 打开“configure”文件。
    vi configure

  2. 按“i”进入编辑模式，修改“configure”文件的第5380行，将“no”改为“yes”。

```
succeeded=
yes
```


  3. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。


- configure文件中指定通过<bam/version.hpp>来判断bam版本，事实上bam的version文件为version.h。
  执行以下命令修改“configure”
  文件。
  1. 打开“configure”文件。
    vi configure

  2. 按“i”进入编辑模式，将“bam/version.hpp”改为“bam/version.h”。

```
bam/version.
h
```


  3. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
