title: Getting OpenMPI to work on Mac:
body: <p>I have installed OpenMPI via MacPorts on my OSX system (running Version 10.8.3). I found the C wrapper compiler in /opt/local/lib/openmpi/bin/mpicc, and </p>
  
  <pre><code>/opt/local/lib/openmpi/bin/mpicc test.c
  </code></pre>
  
  <p>compiles normally. Following the ideas in <a href="https://stackoverflow.com/questions/13909432/installed-openmpi-library-but-cannot-use-mpicc-command-in-linux">this</a> post, I issued the following command</p>
  
  <pre><code>PATH=$PATH:~/opt/local/lib/openmpi/bin
  </code></pre>
  
  <p>which I thought would allow me to compile with </p>
  
  <pre><code>mpicc test.c
  </code></pre>
  
  <p>However, this gives the following error:</p>
  
  <pre><code>-bash: mpicc: command not found
  </code></pre>
  
  <p>What have I done wrong?</p>