Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ondovb
    Member
    • Jan 2010
    • 20

    MIRA on Mac OS X

    Has anyone gotten MIRA to work on OS X?

    I found this post that implies that it should work.

    However, I'm having trouble with the Boost library. I tried staging the latest version (1.4.2) and setting $BOOST_ROOT, but MIRA's configure script couldn't find it. I would have installed it, as recommended, but I can't figure out how to. Boost 1.4.2 has no makefile or configure script, and the docs just say "often, there's nothing to build". They list some libraries (such as thread, which MIRA needs) that have to be built, but they don't say how to build them. I tried going back to Boost 1.35 (the minimum required for MIRA). This version at least has a configure script, but it throws a bunch of errors when making, and then MIRA's configure script says "BOOST thread lib must be available".

    Anyone have better luck?
  • maubp
    Peter (Biopython etc)
    • Jul 2009
    • 1544

    #2
    Which Mac OS X are you using? Snow Leopard?

    A while back under Leopard (Mac OS X 10.5) I installed BOOST 1.4.0 (the latest at the time) and managed to compile and run the then latest pre-release MIRA v3rc4. But only in 32bit mode

    I'm now on Snow Leopard (which is more 64bit than Leopard was) and plan to try the latest MIRA shortly...
    Last edited by maubp; 03-16-2010, 09:41 AM.

    Comment

    • ondovb
      Member
      • Jan 2010
      • 20

      #3
      Yeah, it's Snow Leopard. I finally figured out how to build Boost 1.4.2 (you have to use their tool, BJam), but that failed on a bunch of libraries, including thread. The errors were all "ld: unknown option: -R".

      Comment

      • maubp
        Peter (Biopython etc)
        • Jul 2009
        • 1544

        #4
        Originally posted by ondovb View Post
        Yeah, it's Snow Leopard. I finally figured out how to build Boost 1.4.2 (you have to use their tool, BJam), but that failed on a bunch of libraries, including thread. The errors were all "ld: unknown option: -R".
        They do document the fact you have to use bjam (even if it could be much clearer). What I used was just:

        Code:
        cd boost_1_42_0
        ./bootstrap.sh
        ./bjam
        ./bjam install --prefix=/Users/myusername/
        However, I had a problem with the Python bindings (which I think is a 64bit issue as the error message was about the Apple provided Python 2.5 not their 64-bit capable Python 2.6):

        Code:
        ...failed updating 56 targets...
        ...skipped 5 targets...
        ...updated 7743 targets...
        I don't think we need to worry about the Boost Python stuff for MIRA.
        Last edited by maubp; 03-23-2010, 07:53 AM. Reason: fixed typo

        Comment

        • maubp
          Peter (Biopython etc)
          • Jul 2009
          • 1544

          #5
          See also:

          Comment

          • maubp
            Peter (Biopython etc)
            • Jul 2009
            • 1544

            #6
            I ran into some issues with multiple copies of libexpat (apparently from Apple, BOOST and EMBOSS). I tried to get rid of my out of date EMBOSS, and removed the full BOOST install. I was able to simplify the BOOST installation to just this:

            Code:
            cd boost_1_42_0
            ./bootstrap.sh --with-libraries=thread
            ./bjam
            ./bjam install --prefix=/Users/myusername
            I am now able to install a working MIRA 3.0.0 on Snow Leopard, but not 3.0.1, 3.0.2 or 3.0.3 (which all fail immediately with an abort trap). I'm still investigating (with Bastein etc).

            Originally posted by Bastien
            An error is occurring during static initialisation, before even the main()
            starts. The code for this is new in 3.0.1 and works flawlessly on Linux and
            other MacOS ... "This is not supposed to happen." [tm]

            I'm not entirely sure, but I wouldn't search the cause for this in libraries.
            looks like a weird compiler or linker bug.

            I'll send you some files this evening to try out a few things, but let's take
            this discussion offline now (and post a summary later), it's probably not
            interesting for most of the subscribers.
            Other uses on the MIRA talk mailing list report MIRA 3.0.0 though 3.0.3 all building and working fine on Snow Leopard - so this isn't a general issue.
            Last edited by maubp; 03-23-2010, 09:42 AM. Reason: Added quote

            Comment

            • maubp
              Peter (Biopython etc)
              • Jul 2009
              • 1544

              #7
              Originally posted by maubp View Post
              Other uses on the MIRA talk mailing list report MIRA 3.0.0 though 3.0.3 all building and working fine on Snow Leopard - so this isn't a general issue.
              That turned out to be a miss-communication. To summarise:
              • MIRA 3.0.0 works on Mac OS 10.6 Snow Leopard (but has some known issues fixed in the later point releases).
              • MIRA 3.0.1, 3.0.2 and 3.0.3 all fail on the Mac (they compile but when run immediately abort).
              • Bastien has tracked down the cause of the problem, and seems to have fixed it on the development branch.


              In order to compile MIRA on Mac OS 10.6 Snow Leopard you can use the Apple provided libexpat (which will be detected automatically if there are no other versions present). You don't need all of BOOST, install just the threading library. I choose to install this under my home directory rather than at the system level:

              Code:
              cd boost_1_42_0
              ./bootstrap.sh --with-libraries=thread
              ./bjam
              ./bjam install --prefix=/Users/myusername
              Then to compile MIRA,

              Code:
              cd mira-3.0.0
              ./configure --with-boost=/Users/myusername
              make
              make check
              Peter
              Last edited by maubp; 03-29-2010, 02:22 AM. Reason: Adding instructions

              Comment

              • ondovb
                Member
                • Jan 2010
                • 20

                #8
                Thanks for the help. I now have 3.0.0 running an assembly.

                Comment

                • maubp
                  Peter (Biopython etc)
                  • Jul 2009
                  • 1544

                  #9
                  Originally posted by maubp View Post
                  To summarise:
                  • MIRA 3.0.0 works on Mac OS 10.6 Snow Leopard (but has some known issues fixed in the later point releases).
                  • MIRA 3.0.1, 3.0.2 and 3.0.3 all fail on the Mac (they compile but when run immediately abort).
                  • Bastien has tracked down the cause of the problem, and seems to have fixed it on the development branch.
                  I've just compiled the just released MIRA 3.0.5 (using the method described earlier on this thread), and it seems to work

                  Comment

                  • carcalas
                    Member
                    • Nov 2010
                    • 11

                    #10
                    Need help, please!!!!!!

                    Hi friends,
                    I have a problem with MIRA-3.2.0rc2, and I would be very grateful to you if you can help me. I am a novel user of Unix, and so my knowledge is very very limited. I have a Mac with system 10.5.8. First of all, I had to install the Xcode tools because gcc was not available by default. But one solved this problem, I had the following error when executing ./configure:

                    checking whether the Boost::Thread library is available... no

                    +++++++++++++++++++++++++++++++++++++
                    BOOST_CPPFLAGS: -I/include/boost-0
                    BOOST LDFLAGS: -L/lib
                    ac_boost_path: /opt/local
                    ac_boost_lib_path:
                    BOOST_THREAD_LIB:
                    CFLAGS now: -O2
                    CXXFLAGS now: -O2
                    LDFLAGS now: -L/usr/lib
                    +++++++++++++++++++++++++++++++++++++
                    Automatic recognition of Boost thread lib failed? I have
                    ////// BOOST_CPPFLAGS: -I/include/boost-0
                    ////// BOOST LDFLAGS: -L/lib
                    ////// ac_boost_path: /opt/local
                    ////// ac_boost_lib_path:
                    ////// BOOST_THREAD_LIB:
                    ////// BOOST_ROOT:
                    Please give the configure script the location of your BOOST
                    libraries. Or, if needed, the name of your thread library (without
                    'lib' in front):
                    --with-boost=DIR
                    or --with-boost-libdir=LIB_DIR
                    or --with-boost-thread=special-lib

                    configure: error: Stopping here as BOOST thread lib must be available at this stage. Sorry.

                    I previouslly installed boost 1.44 thinking that with this application all was OK. Do you know the reason why I cannot configure MIRA? Can you help me?.
                    Please, try to explain with as much details as possible, as I have commented before, I have no experience with Unix.
                    Thanks a lot in advance.

                    Comment

                    • maubp
                      Peter (Biopython etc)
                      • Jul 2009
                      • 1544

                      #11
                      Originally posted by carcalas View Post
                      Hi friends,
                      I have a problem with MIRA-3.2.0rc2, ... the following error when executing ./configure:

                      checking whether the Boost::Thread library is available... no
                      ...

                      I previouslly installed boost 1.44 thinking that with this application all was OK.
                      Where did you install BOOST? Since MIRA can't find it, you will have to tell MIRA where to look using the --with-boost argument to configure.

                      Comment

                      • carcalas
                        Member
                        • Nov 2010
                        • 11

                        #12
                        I located the folder in the desktop. May be this is the problem?. Where do I have to put the folder, inside the mira folder?.
                        Thanks a lot again

                        Comment

                        • maubp
                          Peter (Biopython etc)
                          • Jul 2009
                          • 1544

                          #13
                          You don't just unzip the BOOST files into a folder - it has to be compiled. Have you tried the method I gave earlier in this thread? See post 7:
                          Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

                          Comment

                          • carcalas
                            Member
                            • Nov 2010
                            • 11

                            #14
                            Thanks a lot for your fast reponse. I compiled Boost following the instructions I found in a forum:

                            1. The first thing to do is to download the Boost distribution from the Boost downloads page.
                            2. Unpack the archive somewhere sensible, I’d suggest the desktop. Don’t do it where the absolute folder path will have any spaces in the name e.g. “/users/matt/code/bad folder/”, this will prevent the install script from working later. I found this out the hard way.
                            3. Next open a terminal window and navigate to the Boost root folder you just unpacked, it will be called “boost_1_39_0″ if you are using the current version. If it’s on your desktop you will need to use “cd /users/username/desktop/boost_1_39_0“. We refer to this path in future as the $BOOST_ROOT
                            4. Next run the bootstrap script by typing “./bootstrap.sh“. This configures the install tools for your environment. Check it for error messages, this is where I found out my path was bad.
                            5. If you run the “ls” command you should now have an executable called bjam.
                            6. To compile Boost, type “./bjam architecture=combined” and press enter, this will build Universal (x86 and PowerPC compatible) libraries.
                            7. Make a cup of coffee and wait while the libraries build.

                            Is this OK?. I did it exactly as indicated in these instructions, including point 7.

                            Comment

                            • maubp
                              Peter (Biopython etc)
                              • Jul 2009
                              • 1544

                              #15
                              OK. Were there any errors? Where did it put the files?

                              e.g. Can you find libboost_thread.dylib (and note that Spotlight may not check the system folders - try looking in /local/usr/lib as a guess).

                              Comment

                              Latest Articles

                              Collapse

                              • SEQadmin2
                                From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                                by SEQadmin2


                                Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                                The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                                ...
                                06-02-2026, 10:05 AM
                              • SEQadmin2
                                Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                                by SEQadmin2


                                With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                                Introduction

                                Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                                05-22-2026, 06:42 AM
                              • SEQadmin2
                                Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
                                by SEQadmin2

                                Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


                                Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
                                05-06-2026, 09:04 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by SEQadmin2, Yesterday, 08:59 AM
                              0 responses
                              14 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 06-02-2026, 12:03 PM
                              0 responses
                              22 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 06-02-2026, 11:40 AM
                              0 responses
                              19 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 05-28-2026, 11:40 AM
                              0 responses
                              32 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...