title: Importerror dlopen () symbol not found expected in flat namespace
body: <p>I'm trying to install the <a href="http://spams-devel.gforge.inria.fr/index.html" rel="nofollow noreferrer">SPAMS</a> (SPArse Modeling Software) toolbox for python. The building and installing seem to be ok, but when I test the installation I get this error:</p>
  
  <pre><code> ImportError: dlopen(/Users/Apollo/venv/lib/python2.7/site-packages/_spams_wrap.so, 2): Symbol not found: _GOMP_critical_end
    Referenced from: /Users/Apollo/venv/lib/python2.7/site-packages/_spams_wrap.so
    Expected in: flat namespace
   in /Users/Apollo/venv/lib/python2.7/site-packages/_spams_wrap.so
  </code></pre>
  
  <p>I checked all the answers but nothing worked and I'm stuck.
  I work on Mac OS X Lion 10.7.5, with virtual env, python 2.7.1, IDE PyCharm 5.0.6.
  The version of gcc is:</p>
  
  <pre><code>i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
  </code></pre>