fraenkel-lab / OmicsIntegrator

This repository is the working directory for the Garnet-Forest bundle of python scripts for analyzing diverse forms of 'omic' data in a network context.
http://fraenkel.mit.edu/omicsintegrator
BSD 2-Clause "Simplified" License
31 stars 20 forks source link

building msgsteiner on Mac OS requires gcc #22

Closed koksal closed 7 years ago

koksal commented 7 years ago

Hi,

I'd like to give some feedback on installation instructions after having successfully run OmicsIntegrator on OS X El Capitan (10.11).

The issue is that on OS X, gcc is actually an alias for the Mac version of the clang compiler, which doesn't support OpenMP. Meanwhile, msgsteiner requires OpenMP support. I found the solution to be as follows:

  1. Install the gcc compiler using homebrew: brew install gcc When installed, the compiler can be accessed via the gcc-6 command.

  2. Build the Boost library using homebrew, specifying gcc-6 as the compiler: brew install boost --cc=gcc-6 Without this extra argument, the library will not be visible to gcc when building msgsteiner.

  3. Similarly to the other patches, change the msgsteiner Makefile to use g++-6 instead of g++.

I wanted to contribute this piece of information since I spent a fair bit of time making sure msgsteiner could be built using Boost :)

AmandaKedaigle commented 7 years ago

Thanks Ali, this worked for me as well! We now link to this thread in our readme.

Notes for future users:

koksal commented 7 years ago

Thanks @AmandaKedaigle !

agitter commented 7 years ago

Thanks @koksal for the advice. Commit 1a854b5620954373cec435cfb01f36029f1cd9f9 adds a link to this advice to the readme.