Update MPI to the newest version
<p>I'd like to upgrade my MPI to the newest stable one, that is the version 2.0.1. Before tring on my own I checked if something useful is on the <a href="https://www.open-mpi.org/" rel="nofollow noreferrer">Open MPI site</a>.</p>
<p>The point 6 on the <a href="https://www.open-mpi.org/faq/?category=building#install-overwrite" rel="nofollow noreferrer">FAQ page</a> explicitly says that <em>installing one version of Open MPI does not uninstall another version</em>. To install a newer version, the site suggests one of four ways.</p>
<ul>
<li><em>Install newer versions of Open MPI into a different directory</em>. I don't want to have both versions installed.</li>
<li><em>The make uninstall process from the build tree should completely uninstall that version from the installation tree, making it safe to install a new version into the same installation tree</em>. I don't think I have the build tree (nor the source tree; maybe I removed those folders following a guide like <a href="http://edu.itp.phys.ethz.ch/hs12/programming_techniques/openmpi.pdf" rel="nofollow noreferrer">this</a>), so I don't have a <code>make unistall</code> command to run.</li>
<li><em>Remove the old installation directory entirely and then install the new version.</em> This is the only thing I can do, since...</li>
<li>...the fourth way is not recommended, so I would avoid it.</li>
</ul>
<p>Now the point is how can I locate the installation directory? If I <code>locate mpirun</code> or <code>mpifort</code> I find some result in several folders, many of them being not <code>.../openmpi/...</code>.</p>
<p>I'm actually interested in the answer to this question for both Ubuntu 15.10 and Mac OS X 10.11.6.</p>