title: /bin/sh: mpic++ command not found in Eclipse for Parallel Application Developers
body: <p>I'm trying to use Eclipse for Parallel Application Developers to do some MPI stuff but I can't get the program to compile.  Below is the error I'm getting in the console:</p>
  
  <pre><code>Description Resource    Path        Location        Type
  /bin/sh: mpic++: command not found  prog            C/C++ Problem
  </code></pre>
  
  <p>I use <code>mpic++</code> from the command line (bash shell) to successfully compile programs.  When I run the command using bourne shell I get an error.</p>
  
  <pre><code>/bin/sh mpic++
  /usr/local/bin/mpic++: /usr/local/bin/mpic++: cannot execute binary file
  </code></pre>
  
  <p>When I use <code>sudo</code> I still get the same error.  But when I first change to the bourne shell then run the mpic++ command it works.</p>
  
  <pre><code>/bin/sh
  sh-3.2$ mpic++
  clang: error: no input files
  </code></pre>
  
  <p>I've been looking at ways to change the shell used by eclipse so I can use the bash shell because I can call <code>mpic++</code> without any problems.  I've also tried launching eclipse with <code>sudo</code> but that didn't work.</p>