Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joachim.jacob
    Junior Member
    • Jan 2011
    • 9

    #1

    mosaik-aligner installation problem on redhat 6

    Hi,

    I have downloaded the Mosaik-1.1.0021-source.tar.bz2 on our RedHat6 64 bit system. When running 'make' in the src directory, errors occur. Dependencies (gcc-c++, zlib, zlib-devel) have caused the some of the errors, but now I am stuck.

    Anybody to put me on the right track?

    Code:
    $ make
    Building MOSAIK for the following platform: linux
    =========================================================
    - Building in CommonSource
    - Building in AssemblyFormats
    make[2]: Nothing to be done for `all'.
    
    - Building in DataStructures
    make[2]: Nothing to be done for `all'.
    
    - Building in ExternalReadFormats
    make[2]: Nothing to be done for `all'.
    
    - Building in MosaikReadFormat
    make[2]: Nothing to be done for `all'.
    
    - Building in PairwiseAlignment
    make[2]: Nothing to be done for `all'.
    
    - Building in Utilities
    make[2]: Nothing to be done for `all'.
    
    
    - Building in MosaikBuild
      * linking MosaikBuild
    /usr/bin/ld: cannot find -lz
    collect2: ld returned 1 exit status
    make[1]: *** [MosaikBuild] Error 1
    
    - Building in MosaikAligner
      * linking MosaikAligner
    /usr/bin/ld: cannot find -lpthread
    collect2: ld returned 1 exit status
    make[1]: *** [MosaikAligner] Error 1
    
    - Building in MosaikSort
      * linking MosaikSort
    /usr/bin/ld: cannot find -lpthread
    collect2: ld returned 1 exit status
    make[1]: *** [MosaikSort] Error 1
    
    - Building in MosaikMerge
      * linking MosaikMerge
    /usr/bin/ld: cannot find -lpthread
    collect2: ld returned 1 exit status
    make[1]: *** [MosaikMerge] Error 1
    
    - Building in MosaikAssembler
      * linking MosaikAssembler
    /usr/bin/ld: cannot find -lpthread
    collect2: ld returned 1 exit status
    make[1]: *** [MosaikAssembler] Error 1
    Thanks in advance!
    www.bits.vib.be
  • Thomas Doktor
    Senior Member
    • Apr 2009
    • 105

    #2
    Look here for a solution to "-lpthread": http://www.justlinux.com/forum/showthread.php?t=126349

    "-lz" is the zlib which you have installed. Is the Mosaik buildprocess looking in the right folder?

    You can always just google "/usr/bin/ld: cannot find lpthreads" (or whatever library it's missing) for these kinds of things.

    Comment

    • joachim.jacob
      Junior Member
      • Jan 2011
      • 9

      #3
      Sorry, I can't solve the problem

      Hi,

      Thanks for your suggestion to google: that is a new approach.

      zlib is installed, but I am not sure about lpthreads.

      I am learning now about 'ldconfig': apparently this is used to create links to the most up-to-date libraries. Perhaps I should pass a parameter over there.

      Quitting mosaik for now.
      www.bits.vib.be

      Comment

      • austic
        Member
        • Mar 2011
        • 11

        #4
        library issue (to some extent)

        I am having the same problem. ("/usr/bin/ld: cannot find -lpthread")
        upgraded my glibc using the add/remove software interface (awesome!) worked great
        then, like you i got the "/usr/bin/ld: cannot find -lz" error
        came across this:
        http://stackoverflow.com/questions/3...cannot-find-lz
        which would seem to suggest there's something wrong with the Makefile.in
        However, I looked through several of the Makefile.in and header files for each of the modules and couldn't find anything overtly wrong (plus, i highly doubt the author would release it if it didn't compile). So I started looking around some more and found this:

        i went to my add/remove software interface and searched for zlib1g-dev but couldn't find any package named that, however i *did* find several packages with "zlib" included in the name. so i downloaded them all:
        mingw32-zlib
        perl-IO-Zlib (<--- this was probably the one)
        perl-Archive-Tar
        mingw32-zlib-static
        jzlib
        jzlib-javadoc
        zlib-static (<-- or maybe this one)
        jzlib-demo

        and then the code would compile

        Comment

        • PRoebuck
          Junior Member
          • Mar 2013
          • 1

          #5
          RHEL 6.0

          I got source distribution to compile/link by modifying the 'includes/linux.inc' as follows:

          # define our processor specific flags
          export PLATFORM_FLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -static
          export PLATFORM_LIBS = -L/usr/lib/x86_64-redhat-linux5E/lib64

          Determine library location (PLATFORM_LIBS) with command:
          $ find /usr/lib -name "*pthread*"

          Needs an exact match to 'libpthread.a".

          The GNU_SOURCE define solved linker error for MosaikAlign complaint about C99 version of fscanf().

          Comment

          • Carlos Borroto
            Member
            • Mar 2011
            • 19

            #6
            Originally posted by austic View Post
            zlib-static (<-- or maybe this one)
            I was also hit by this issue. I'm using CentOS 6.4. With the help of this thread I was able to solve it by installing these two packages:
            Code:
            sudo yum install zlib-static glibc-static
            No need to modify any source files in my case.

            Best,
            Carlos

            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, Yesterday, 10:52 AM
            0 responses
            9 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            19 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-13-2026, 09:56 AM
            0 responses
            16 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-09-2026, 11:14 AM
            0 responses
            27 views
            0 reactions
            Last Post SEQadmin2  
            Working...