title: CentOS 7 undefined symbol: ompi_mpi_logical8
body: <p>I'm trying to install a python(3) package which depends on <code>mpi4py</code> on a <code>CentOS 7</code> machine.</p>
  
  <p>I have tried multiple ways of doing everything, even start from clean <code>virtualenvs</code> but I keep getting:</p>
  
  <pre><code>ImportError: $PATH_TO_VENV/lib/python3.6/site-packages/mpi4py/MPI.cpython-36m-x86_64-linux-gnu.so: undefined symbol: ompi_mpi_logical8
  </code></pre>
  
  <p>This comes up even if, after a successful installation through <code>pip</code>, I just write in the interpreter:</p>
  
  <pre><code>&gt;&gt;&gt; import mpi4py
  &gt;&gt;&gt; from mpi4py import MPI
  </code></pre>
  
  <p>Has anyone got a solution for this?</p>