Unconfigured Ad

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

    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:
        I am trying to compile Android source code under Ubuntu 10.04. I get an error saying, /usr/bin/ld: cannot find -lz Can you please tell me how can I fix it? What does cannot find -lz mean? Here's ...

        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

            • mylaser
              Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
              by mylaser
              Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
              If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
              This guide explains everything you need to know about...
              Yesterday, 01:13 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
            • 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

            ad_right_rmr

            Collapse

            News

            Collapse

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