grenaud / glactools

command-line tools for the management of genotype likelihoods and allele counts
http://grenaud.github.io/glactools/
GNU General Public License v3.0
29 stars 2 forks source link

compilation terminated, make[1]: *** [Makefile:139: bam_tview_curses.o] Error 1 & make: *** [Makefile:44: samtools/libst.a] Error 2 #32

Closed M-Asim-Javed closed 3 months ago

M-Asim-Javed commented 3 months ago

Hello,

I am encountering a problem while installing Glactools. Could you please guide me on how to resolve this issue? I would greatly appreciate your assistance.

Thanks!

gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o bamtk.o bamtk.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o bam2bcf.o bam2bcf.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o sample.o sample.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o cut_target.o cut_target.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o phase.o phase.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o bam2depth.o bam2depth.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o coverage.o coverage.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o padding.o padding.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o bedcov.o bedcov.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o bamshuf.o bamshuf.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o faidx.o faidx.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o dict.o dict.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o stats.o stats.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o stats_isize.o stats_isize.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o bam_flags.o bam_flags.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o bam_split.o bam_split.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o bam_tview.o bam_tview.c
gcc -g -Wall -O2 -I. -I../htslib -I./lz4  -c -o bam_tview_curses.o bam_tview_curses.c
bam_tview_curses.c:42:10: fatal error: curses.h: No such file or directory
   42 | #include <curses.h>
      |          ^~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:139: bam_tview_curses.o] Error 1
make[1]: Leaving directory '/home/edelab/asim_work/vcf_analysis/files_for_vcf/gdgeno_snps_data/nucleotide_diversity/tajimaD/vcftools_new/vcftools/betascan/glactools/samtools'
make: *** [Makefile:44: samtools/libst.a] Error 2
grenaud commented 3 months ago

Hi Muhammad, this is an issue with building samtools, perhaps have a look at their repository?