Hi All,
I am trying to run bam-readcount but I get the following error in the "make" step of the installation. I am using cmake v3.4.3
The commands I used are:
>git clone https://github.com/genome/bam-readcount.git
>cmake bam-readcount/
> make
Error:
> [ 82%] Linking CXX executable ../../../../bin/bam-readcount
>
> ../../../../vendor/samtools/libbam.a(bam_import.o): In function
> `__bam_get_lines':
>
> /Users/hshah2/vendor/samtools/bam_import.c:76: undefined reference to
> `gzopen64'
>
> ../../../../vendor/samtools/libbam.a(bam_import.o): In function
> `sam_open':
>
> /Users/hshah2/vendor/samtools/bam_import.c:472: undefined reference to
> `gzopen64'
>
> ../../../../vendor/samtools/libbam.a(bam_import.o): In function
> `sam_header_read2':
>
> /Users/hshah2/vendor/samtools/bam_import.c:126: undefined reference to
> `gzopen64' collect2: ld returned 1 exit status
>
> make[2]: *** [bin/bam-readcount] Error 1
>
> make[1]: ***
> [build/src/exe/bam-readcount/CMakeFiles/bam-readcount.dir/all] Error 2
>
> make: *** [all] Error 2
Thanks a lot ! It works now