I'm trying to install samtools on mac os 10.5.8
after downloading the source code package, I did the following:
tar jxvf samtools-0.1.19.tar.bz2
cd samtools-0.1.19
make
But always got this error:
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
Undefined symbols:
"___sync_fetch_and_add", referenced from:
_worker_aux in libbam.a(bgzf.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [samtools] Error 1
make: *** [all-recur] Error 1
Anybody can help me?
Thanks a lot!
after downloading the source code package, I did the following:
tar jxvf samtools-0.1.19.tar.bz2
cd samtools-0.1.19
make
But always got this error:
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
Undefined symbols:
"___sync_fetch_and_add", referenced from:
_worker_aux in libbam.a(bgzf.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [samtools] Error 1
make: *** [all-recur] Error 1
Anybody can help me?
Thanks a lot!
Comment