Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • doublealice
    Member
    • Feb 2011
    • 24

    SAMtools install problem on curses.h

    I found several threads which mentioned same problem as mine. But none of their solutions help.

    I downloaded the most recent version of samtools, 0.1.14 and tried to install it on my redhat enterprise server 6. The error message I've got was:

    Code:
    gcc -c -g -Wall -O2  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bam_tview.c -o bam_tview.o
    bam_tview.c:5:20: error: curses.h: No such file or directory
    bam_tview.c:7:2: warning: #warning "_CURSES_LIB=1 but NCURSES_VERSION not defined; tview is NOT compiled"
    bam_tview.c:418:2: warning: #warning "No curses library is available; tview is disabled."
    make[1]: *** [bam_tview.o] Error 1
    make[1]: Leaving directory `/home/polymerase/myapp/samtools'
    make: *** [all-recur] Error 1
    It was suggested that my system may not install ncurse-lib (http://seqanswers.com/forums/showthr...es.h#post13715). But I have that on my system:

    Code:
    # rpm -qa |grep curses
    ncurses-5.7-3.20090208.el6.x86_64
    ncurses-base-5.7-3.20090208.el6.x86_64
    ncurses-libs-5.7-3.20090208.el6.x86_64
    The other one suggested to modify "LIBCURSES= -lcurses" in Makefile into "LIBCURSES= -lncurses". (http://seqanswers.com/forums/showthread.php?t=6669). I did, but the problem still there.

    The last thread I can find suggested to "add -I/usr/include/ncurses to CFLAGS in the samtools Makefile" (http://seqanswers.com/forums/showthread.php?t=7391), but it was for installing samtools on cygwin.

    Would you please help to see if anything else I can do for it? Thank you !
  • doublealice
    Member
    • Feb 2011
    • 24

    #2
    Code:
    yum install ncurses-devel
    Installed ncurses-devel solved the problem.

    But another error appears:
    Code:
    gcc -g -Wall -O2  -o samtools bam_tview.o bam_maqcns.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 -Lbcftools  libbam.a -lbcf -lcurses  -lm -lz
    /usr/bin/ld: cannot find -lz
    collect2: ld returned 1 exit status
    make[1]: *** [samtools] Error 1
    make[1]: Leaving directory `/home/polymerase/myapp/samtools'
    make: *** [all-recur] Error 1
    Don't know how to fix on it.

    Comment

    • RDW
      Member
      • Oct 2008
      • 63

      #3
      zlib-devel?

      Comment

      • doublealice
        Member
        • Feb 2011
        • 24

        #4
        Originally posted by RDW View Post
        zlib-devel?
        Yes, I installed zlib-devel, then it works. Thank you very much!

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
          by SEQadmin2



          Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
          ...
          07-09-2026, 11:10 AM
        • SEQadmin2
          Cancer Drug Resistance: The Lingering Barrier to Rising Survival
          by SEQadmin2



          Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

          There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
          07-08-2026, 05:17 AM
        • GATTACAT
          Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
          by GATTACAT
          Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
          07-01-2026, 11:43 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 07-13-2026, 10:26 AM
        0 responses
        24 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-09-2026, 10:04 AM
        0 responses
        33 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-08-2026, 10:08 AM
        0 responses
        21 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-07-2026, 11:05 AM
        0 responses
        34 views
        0 reactions
        Last Post SEQadmin2  
        Working...