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

            • GATTACAT
              Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
              by GATTACAT
              Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
              07-01-2026, 11:43 AM
            • 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...
              06-18-2026, 07:11 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 07-02-2026, 11:08 AM
            0 responses
            12 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-30-2026, 05:37 AM
            0 responses
            14 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-26-2026, 11:10 AM
            0 responses
            20 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-17-2026, 06:09 AM
            0 responses
            54 views
            0 reactions
            Last Post SEQadmin2  
            Working...