Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ihelbig
    Junior Member
    • Dec 2012
    • 3

    samtools installation error "cannot find -lcurses"

    Dear all,
    I am trying to install samtools on OpenSuse and I have already added quite a few development packages that were required. However, it still gives me an error message because of "cannot find -lcurses"

    Does anyone know what that means?

    This is the entire error message

    ih@kkkad007:~/samtools-0.1.18> make
    make[1]: Entering directory `/home/ih/samtools-0.1.18'
    make[2]: Entering directory `/home/ih/samtools-0.1.18'
    make[2]: Nothing to be done for `lib'.
    make[2]: Leaving directory `/home/ih/samtools-0.1.18'
    make[2]: Entering directory `/home/ih/samtools-0.1.18/bcftools'
    make[2]: Nothing to be done for `lib'.
    make[2]: Leaving directory `/home/ih/samtools-0.1.18/bcftools'
    make[2]: Entering directory `/home/ih/samtools-0.1.18/misc'
    make[2]: Nothing to be done for `lib'.
    make[2]: Leaving directory `/home/ih/samtools-0.1.18/misc'
    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 -Lbcftools libbam.a -lbcf -lcurses -lm -lz
    /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lcurses
    collect2: error: ld returned 1 exit status
    make[1]: *** [samtools] Error 1
    make[1]: Leaving directory `/home/ih/samtools-0.1.18'
    make: *** [all-recur] Error 1
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    You are missing the "ncurses" (and perhaps ncurses-devel) library. You can install it using your package manager.

    Comment

    • maubp
      Peter (Biopython etc)
      • Jul 2009
      • 1544

      #3
      In general, the compiler message missing -lxxx means the library xxx is missing. In this case, ncurses.

      In most Linux distributions libraries like this are split in two, the run time and development packages. This is done for space efficiency - if you're just using pre-compiled code, you don't need all the development files as well. The packages are normally called something like xxx and either xxx-dev or xxx-devel depending on the Linux distribution. (The naming can be more complicated, perhaps libxxx and either libxxx-dev or libxxx-devel in some cases, or with a version number in the name as well).

      As GenoMax wrote, for OpenSuse you'll want "ncurses" and "ncurses-devel".

      Comment

      • swbarnes2
        Senior Member
        • May 2008
        • 910

        #4
        Yeah, on my system I had the same problem. Someone suggested I change that line in the Makefile to 'use lncurses' or something like that, and now it works.

        Comment

        • ihelbig
          Junior Member
          • Dec 2012
          • 3

          #5
          Thank you for the answer. Through some other help page, I had received a similar idea. I just added a "n" in the Makefile to change lcurses to lncurses and then the installation worked.

          Ingo

          Comment

          • ECO
            --Site Admin--
            • Oct 2007
            • 1360

            #6
            On Ubuntu 11.10, this is from installing the package "libncurses5" with apt-get:

            sudo apt-get install libncurses5

            ...getting there.

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Nine Things a Sample Prep Scientist Thinks About Before Sequencing
              by SEQadmin2


              I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


              Here are nine questions we think about, in roughly the order they matter, before...
              Yesterday, 07:11 AM
            • SEQadmin2
              From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
              by SEQadmin2


              Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


              The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
              ...
              06-02-2026, 10:05 AM
            • SEQadmin2
              Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
              by SEQadmin2


              With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


              Introduction

              Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
              05-22-2026, 06:42 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 06-17-2026, 06:09 AM
            0 responses
            20 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-09-2026, 11:58 AM
            0 responses
            38 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-05-2026, 10:09 AM
            0 responses
            44 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-04-2026, 08:59 AM
            0 responses
            49 views
            0 reactions
            Last Post SEQadmin2  
            Working...