title: Trouble using mpirun from mpich2 after compiling using CMake
body: <p>I am having trouble trying to run MPI . I installed mpich2-1.4.1p1, and when I run the mpi program using mpirun, I get:</p>
  
  <pre><code>[starsky:27711] [[INVALID],INVALID] ORTE_ERROR_LOG: A system-required executable either could not be found or was not executable by this user in file ../../../../../../orte/mca/ess/singleton/ess_singleton_module.c at line 357
  [starsky:27711] [[INVALID],INVALID] ORTE_ERROR_LOG: A system-required executable either could not be found or was not executable by this user in file ../../../../../../orte/mca/ess/singleton/ess_singleton_module.c at line 230
  [starsky:27711] [[INVALID],INVALID] ORTE_ERROR_LOG: A system-required executable either could not be found or was not executable by this user in file ../../../orte/runtime/orte_init.c at line 132
  --------------------------------------------------------------------------
  It looks like orte_init failed for some reason; your parallel process is
  likely to abort.  There are many reasons that a parallel process can
  fail during orte_init; some of which are due to configuration or
  environment problems.  This failure appears to be an internal failure;
  here's some additional information (which may only be relevant to an
  Open MPI developer):
  
    orte_ess_set_name failed
    --&gt; Returned value A system-required executable either could not be found or was not executable by this user (-127) instead of ORTE_SUCCESS
  --------------------------------------------------------------------------
  [starsky:27719] [[INVALID],INVALID] ORTE_ERROR_LOG: A system-required executable either could not be found or was not executable by this user in file ../../../../../../orte/mca/ess/singleton/ess_singleton_module.c at line 357
  --------------------------------------------------------------------------
  It looks like MPI_INIT failed for some reason; your parallel process is
  likely to abort.  There are many reasons that a parallel process can
  fail during MPI_INIT; some of which are due to configuration or environment
  problems.  This failure appears to be an internal failure; here's some
  additional information (which may only be relevant to an Open MPI
  developer):
  
    ompi_mpi_init: orte_init failed
    --&gt; Returned "A system-required executable either could not be found or was not executable by this user" (-127) instead of "Success" (0)
  </code></pre>
  
  <p>along with other very similar error messages.</p>
  
  <p>This is pretty similar to the problem in <a href="https://stackoverflow.com/questions/7011519/mpiexec-fails-as-mpi-init-aborts">mpiexec fails as MPI init aborts</a> , as I seem to have both Open MPI and mpich2 . However, I am using cmake to compile, and when I do the suggested mpicc-vt.mpich2 (mpicc-vt because I am using vampir trace) to compile, and then mpirun.mpich2 to run, I get the following error:</p>
  
  <pre><code>To run 'mpirun.mpich2' please ask your administrator to install the package 'mpich2'
  </code></pre>
  
  <p>I have already installed the mpich2 though. Is there a configuration that I was suppose to install the mpich2 with? When I looked at <a href="ftp://ftp.mcs.anl.gov/pub/mpi/mpich2-doc-install.pdf" rel="nofollow noreferrer" title="this manual">this manual</a> at the configurations, none seem to match what I need.</p>
  
  <p>Thanks</p>