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
                      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                      by SEQadmin2



                      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                      ...
                      10-14-2026, 09:55 AM
                    • SEQadmin2
                      New Genomics Technologies Take Aim at Long-Standing Limits
                      by SEQadmin2


                      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                      ...
                      09-28-2026, 10:25 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, 10-22-2026, 11:13 AM
                    0 responses
                    26 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-22-2026, 10:48 AM
                    0 responses
                    20 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-15-2026, 10:52 AM
                    0 responses
                    36 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-14-2026, 05:39 AM
                    0 responses
                    43 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...