Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • opulcy97
    Member
    • Nov 2012
    • 19

    #1

    Breakdancer installation problem

    Hi,

    I was trying to install the latest version of breakdancer tool (breakdancer-1.1.2_2013_03_08). However, the compilation with cpp version failed. It gave me the following error:


    /usr/bin/ld: cannot find -lbam
    collect2: ld returned 1 exit status
    make: *** [all] Error 1

    Can anyone please tell me how to overcome the problem? I got stuck with it for quite a while.

    Many thanks in advance.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Looks like you are missing libbam.a that is included in Samtools.

    Simple instructions to install that library are included in "Installing SAMtools" on this page: http://cufflinks.cbcb.umd.edu/tutorial.html

    Comment

    • opulcy97
      Member
      • Nov 2012
      • 19

      #3
      Thanks GenoMax. It worked like a charm.

      Comment

      • binlangman
        Member
        • Dec 2013
        • 11

        #4
        Error while installing breakdancer

        I installed breakdancer by running the following command:
        cd breakdancer-1.1.2/cpp
        make
        But erros occurred:

        g++ -g -Wall -O2 -I/Users/kchen3/pkg/samtools/samtools-0.1.6 BreakDancerMax.cpp AlnParser.cpp Poisson.cpp -o breakdancer-max -lm -lz -L/Users/kchen3/pkg/samtools/samtools-0.1.6 -lbam
        In file included from /usr/local/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/backward/strstream:52:0,
        from BreakDancerMax.h:3,
        from BreakDancerMax.cpp:1:
        /usr/local/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/backward/backward_warning.h:33:2: Warning:#warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
        In file included from BreakDancerMax.cpp:1:0:
        BreakDancerMax.h:17:17: fatal error:sam.h:No such file or directory
        compile interrupted。
        In file included from AlnParser.cpp:1:0:
        AlnParser.h:17:17: fatal error:sam.h:No such file or directory
        compile interrupted。
        In file included from Poisson.h:1:0,
        from Poisson.cpp:1:
        AlnParser.h:17:17: fatal error:sam.h:No such file or directory
        compile interrupted。
        make: *** [all] error 1

        What should I do to install breakdancer?

        Comment

        • GenoMax
          Senior Member
          • Feb 2008
          • 7142

          #5
          Did you compile samtools on this computer yourself? You may be trying to use a very old version of samtools (v.0.1.6, if the file path reflects the correct version in your command line). Latest samtools is at v0.1.19 (http://sourceforge.net/projects/samt...d?source=files). I suggest getting that version and compiling it before trying to install breakdancer.

          Comment

          • jugpreet
            Junior Member
            • Mar 2014
            • 2

            #6
            Breakdancer make file error

            Hi guys,

            I am trying to install latest version of breakdance (1.1.2) and getting following error. does anyone know whats going on here. Thanks in Advance.


            In file included from /usr/include/c++/4.4/backward/strstream:47,
            from BreakDancerMax.h:3,
            from BreakDancerMax.cpp:1:
            /usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
            In file included from BreakDancerMax.cpp:1:
            BreakDancerMax.h:17:17: error: sam.h: No such file or directory
            BreakDancerMax.h:18:17: error: bam.h: No such file or directory
            BreakDancerMax.h:19:19: error: ksort.h: No such file or directory
            BreakDancerMax.h:20:19: error: khash.h: No such file or directory
            In file included from BreakDancerMax.h:21,
            from BreakDancerMax.cpp:1:
            AlnParser.h:23: error: ‘bam1_t’ was not declared in this scope
            AlnParser.h:23: error: ‘b’ was not declared in this scope
            AlnParser.h:23: error: expected primary-expression before ‘format’
            AlnParser.h:23: error: expected primary-expression before ‘alt’

            Comment

            • GenoMax
              Senior Member
              • Feb 2008
              • 7142

              #7
              Have you installed samtools?

              Comment

              • jugpreet
                Junior Member
                • Mar 2014
                • 2

                #8
                yes...i did....it seems like there is a problem in the C++ compiler

                Comment

                • louis_ly
                  Junior Member
                  • Jun 2013
                  • 4

                  #9
                  Hi everyone,
                  Hi,

                  I was trying to install the latest version of breakdancer tool (breakdancer-1.1.2_2013_03_08). However, the compilation with cpp version failed. It gave me the following error:

                  ~/software/breakDancer/breakdancer-1.1.2/cpp$ make
                  g++ -g -Wall -O2 -I/Users/kchen3/pkg/samtools/samtools-0.1.6 BreakDancerMax.cpp AlnParser.cpp Poisson.cpp -o breakdancer-max -lm -lz -L/Users/kchen3/pkg/samtools/samtools-0.1.6 -lbam
                  In file included from /usr/include/c++/4.8/backward/strstream:51:0,
                  from BreakDancerMax.h:3,
                  from BreakDancerMax.cpp:1:
                  /usr/include/c++/4.8/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
                  #warning \
                  ^
                  In file included from BreakDancerMax.cpp:1:0:
                  BreakDancerMax.h:17:17: fatal error: sam.h: No such file or directory
                  #include "sam.h"
                  ^
                  compilation terminated.
                  In file included from AlnParser.cpp:1:0:
                  AlnParser.h:17:17: fatal error: sam.h: No such file or directory
                  #include "sam.h"
                  ^
                  compilation terminated.
                  In file included from Poisson.h:1:0,
                  from Poisson.cpp:1:
                  AlnParser.h:17:17: fatal error: sam.h: No such file or directory
                  #include "sam.h"
                  ^
                  compilation terminated.
                  make: *** [all] Error 1


                  Is there anyone can help me? Thanks.

                  Comment

                  • yueluo
                    Member
                    • Aug 2013
                    • 82

                    #10
                    Try installing a newer version of samtools.

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                      by SEQadmin2



                      CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                      Despite this, “CRISPR helped turn genome editing from a specialized technique into
                      ...
                      07-31-2026, 11:01 AM
                    • SEQadmin2
                      Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                      by SEQadmin2


                      Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                      The systematic characterization of the human proteome has
                      ...
                      07-20-2026, 11:48 AM
                    • 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

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, Today, 10:13 AM
                    0 responses
                    13 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-31-2026, 02:55 AM
                    0 responses
                    23 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-24-2026, 12:17 PM
                    0 responses
                    19 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-23-2026, 11:41 AM
                    0 responses
                    18 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...