构建 samtools 时未定义对 gzopen64 的引用

构建 samtools 时未定义对 gzopen64 的引用

我正在尝试安装软件包samtools0.1.19。当我运行时make,我收到错误:

gcc -g -Wall -O2 -o samtools bam_tview.o bam_plcmd.o sam_view.o bam_rmdup.o bam_rmdupse.o bam_mate.o bam_stat.o bam_color.o bamtk.o kaln.o bam2bcf.o bam2bcf_indel.o errmod.o sample.o cut_target.o phase.o bam2depth.o padding.o bedcov.o bamshuf.o bam_tview_curses.o bam_tview_html.o  libbam.a -Lbcftools -lbcf  -lcurses  -lm -lz -lpthread
phase.o: In function `loadpos':
/illumina/data/galaxy/apps/samtools-0.1.19/phase.c:475: undefined reference to `gzopen64'
bedcov.o: In function `main_bedcov':
/illumina/data/galaxy/apps/samtools-0.1.19/bedcov.c:69: undefined reference to `gzopen64'
libbam.a(bam_import.o): In function `__bam_get_lines':
/illumina/data/galaxy/apps/samtools-0.1.19/bam_import.c:76: undefined reference to `gzopen64'
libbam.a(bam_import.o): In function `sam_open':
/illumina/data/galaxy/apps/samtools-0.1.19/bam_import.c:472: undefined reference to `gzopen64'
libbam.a(bam_import.o): In function `sam_header_read2':
/illumina/data/galaxy/apps/samtools-0.1.19/bam_import.c:126: undefined reference to `gzopen64'
libbam.a(bedidx.o):/illumina/data/galaxy/apps/samtools-0.1.19/bedidx.c:107: more undefined references to `gzopen64' follow
collect2: ld returned 1 exit status
make[1]: *** [samtools] Error 1
make[1]: Leaving directory `/illumina/data/galaxy/apps/samtools-0.1.19'
make: *** [all-recur] Error 1

我尝试安装它所依赖的包,甚至使用用于红帽 Linux 的 elrepo但它不起作用。

相关内容