Thanks.<br>I just added export CPPFLAGS=-I/usr/local/openmpi/include in the bashrc file, and could compile the mpi version of gromacs.<br>The next thing is I got the error on executing mdrun_mpi -h<br>Following is the output. Kindly help.<br>

<br>corsica:/usr/local/gromacs/bin # mdrun_mpi -h<br>[corsica:17130] [NO-NAME] ORTE_ERROR_LOG: Not found in file runtime/orte_init_stage1.c at line 182<br>--------------------------------------------------------------------------<br>

It looks like orte_init failed for some reason; your parallel process is<br>likely to abort.  There are many reasons that a parallel process can<br>fail during orte_init; some of which are due to configuration or<br>environment problems.  This failure appears to be an internal failure;<br>

here&#39;s some additional information (which may only be relevant to an<br>Open MPI developer):<br><br>  orte_rml_base_select failed<br>  --&gt; Returned value -13 instead of ORTE_SUCCESS<br><br>--------------------------------------------------------------------------<br>

--------------------------------------------------------------------------<br>It looks like MPI_INIT failed for some reason; your parallel process is<br>likely to abort.  There are many reasons that a parallel process can<br>

fail during MPI_INIT; some of which are due to configuration or environment<br>problems.  This failure appears to be an internal failure; here&#39;s some<br>additional information (which may only be relevant to an Open MPI<br>

developer):<br><br>  ompi_mpi_init: orte_init_stage1 failed<br>  --&gt; Returned &quot;Not found&quot; (-13) instead of &quot;Success&quot; (0)<br>--------------------------------------------------------------------------<br>

*** An error occurred in MPI_Init<br>*** before MPI was initialized<br>*** MPI_ERRORS_ARE_FATAL (goodbye)<br>[corsica:17130] Abort before MPI_INIT completed successfully; not able to guarantee that all other processes were killed!<br clear="all">

<br>--<br>Chandan kumar Choudhury<br>NCL, Pune<br>INDIA<br>
<br><br><div class="gmail_quote">On Mon, Feb 1, 2010 at 10:50 AM, Sarath Kumar <span dir="ltr">&lt;<a href="mailto:bskumar.tech@gmail.com">bskumar.tech@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Message: 5<br>
Date: Sun, 31 Jan 2010 00:34:22 +0530<br>
From: Chandan Choudhury &lt;<a href="mailto:iitdckc@gmail.com" target="_blank">iitdckc@gmail.com</a>&gt;<br>
Subject: Re: [gmx-users] error: Cannot compile and link MPI code with<br>
        mpicc<br>
To: Discussion list for GROMACS users &lt;<a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:4e22679c1001301104r5f1d725bjd5824e68cb3cb1a7@mail.gmail.com" target="_blank">4e22679c1001301104r5f1d725bjd5824e68cb3cb1a7@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi Ronald !!<br>
Thanks for your reply.<br>
I recompiled the openmpi. But while executing ./configure --enable-mpi in<br>
gromacs4.0.7 the following error is shown in config.log file.<br>
<br>
configure:4536: checking for mpicc<br>
configure:4552: found /usr/lib/mpi/gcc/openmpi/bin/mpicc<br>
configure:4563: result: mpicc<br>
configure:4577: checking whether the MPI cc command works<br>
configure:4601: mpicc -o conftest -g -O2   conftest.c  &gt;&amp;5<br>
conftest.c:15:17: error: mpi.h: No such file or directory<br>
configure:4607: $? = 1<br>
configure: failed program was:<br>
| /* confdefs.h.  */<br>
| #define PACKAGE_NAME &quot;gromacs&quot;<br>
| #define PACKAGE_TARNAME &quot;gromacs&quot;<br>
| #define PACKAGE_VERSION &quot;4.0.7&quot;<br>
| #define PACKAGE_STRING &quot;gromacs 4.0.7&quot;<br>
| #define PACKAGE_BUGREPORT &quot;<a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a>&quot;<br>
| #define PACKAGE &quot;gromacs&quot;<br>
| #define VERSION &quot;4.0.7&quot;<br>
| #define GMX_SOFTWARE_SQRT<br>
| #define GMX_QMMM_GAUSSIAN<br>
| #define BUILD_TIME &quot;Mon Feb  1 14:07:34 EST 2010&quot;<br>
| #define BUILD_USER &quot;root@corsica&quot;<br>
| #define BUILD_MACHINE &quot;Linux 2.6.31.5-0.1-desktop i686&quot;<br>
| /* end confdefs.h.  */<br>
| #include &lt;mpi.h&gt;<br>
| int<br>
| main ()<br>
| {<br>
| int argc; char **argv; MPI_Init(&amp;argc,&amp;argv);<br>
|   ;<br>
|   return 0;<br>
| }<br>
configure:4619: error: Cannot compile and link MPI code with mpicc<br>
<br>
<br>
--<br>
Chandan kumar Choudhury<br>
NCL, Pune<br>
INDIA<br>
<br>
<br>
On Sat, Jan 30, 2010 at 10:57 PM, Roland Schulz &lt;<a href="mailto:roland@utk.edu" target="_blank">roland@utk.edu</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; your MPI installation has to be brogen. mpicc always has to be able to find<br>
&gt; libmpi. Please reinstall mpi correctly.<br>
&gt;<br>
&gt; Roland<br>
&gt;<br>
&gt; On Sat, Jan 30, 2010 at 11:06 AM, Chandan Choudhury &lt;<a href="mailto:iitdckc@gmail.com" target="_blank">iitdckc@gmail.com</a>&gt;wrote:<br>
&gt;<br>
&gt;&gt; Hi gmx users !!<br>
&gt;&gt;<br>
&gt;&gt; On compiling GMX paralley, following error was encountered. How can I<br>
&gt;&gt; tackle this.<br>
&gt;&gt; Kindly help.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; checking for mpicc... mpicc<br>
&gt;&gt; checking whether the MPI cc command works... configure: error: Cannot<br>
&gt;&gt; compile and link MPI code with mpicc<br>
&gt;&gt;<br>
&gt;&gt; The config.log file reads<br>
&gt;&gt;<br>
&gt;&gt; configure:4536: checking for mpicc<br>
&gt;&gt; configure:4552: found /usr/lib/mpi/gcc/openmpi/bin/mpicc<br>
&gt;&gt; configure:4563: result: mpicc<br>
&gt;&gt; configure:4577: checking whether the MPI cc command works<br>
&gt;&gt; configure:4601: mpicc -o conftest -g -O2 -I/usr/local/openmpi/include/<br>
&gt;&gt; conftest.c  &gt;&amp;5<br>
&gt;&gt; /usr/lib/gcc/i586-suse-linux/4.4/../../../../i586-suse-linux/bin/ld:<br>
&gt;&gt; cannot find -lmpi<br>
&gt;&gt; collect2: ld returned 1 exit status<br>
&gt;&gt; configure:4607: $? = 1<br>
&gt;&gt; configure: failed program was:<br>
&gt;&gt; | /* confdefs.h.  */<br>
&gt;&gt; | #define PACKAGE_NAME &quot;gromacs&quot;<br>
&gt;&gt; | #define PACKAGE_TARNAME &quot;gromacs&quot;<br>
&gt;&gt;  #define PACKAGE_VERSION &quot;4.0.7&quot;<br>
&gt;&gt; | #define PACKAGE_STRING &quot;gromacs 4.0.7&quot;<br>
&gt;&gt; | #define PACKAGE_BUGREPORT &quot;<a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a>&quot;<br>
&gt;&gt; | #define PACKAGE &quot;gromacs&quot;<br>
&gt;&gt; | #define VERSION &quot;4.0.7&quot;<br>
&gt;&gt; | #define GMX_SOFTWARE_SQRT<br>
&gt;&gt; | #define GMX_QMMM_GAUSSIAN<br>
&gt;&gt; | #define BUILD_TIME &quot;Sat Jan 30 21:42:50 IST 2010&quot;<br>
&gt;&gt; | #define BUILD_USER &quot;root@shiraz&quot;<br>
&gt;&gt; | #define BUILD_MACHINE &quot;Linux 2.6.31.5-0.1-desktop i686&quot;<br>
&gt;&gt; | /* end confdefs.h.  */<br>
&gt;&gt; | #include &lt;mpi.h&gt;<br>
&gt;&gt; | int<br>
&gt;&gt; | main ()<br>
&gt;&gt; | {<br>
&gt;&gt; | int argc; char **argv; MPI_Init(&amp;argc,&amp;argv);<br>
&gt;&gt; |   ;<br>
&gt;&gt; |   return 0;<br>
&gt;&gt; | }<br>
&gt;&gt; configure:4619: error: Cannot compile and link MPI code with mpicc<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Chandan<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Chandan kumar Choudhury<br>
&gt;&gt; NCL, Pune<br>
&gt;&gt; INDIA<br>
&gt;&gt;<br>
&gt;&gt; --<br>
<font color="#888888"><br>
******************************************<br></font></blockquote><div><br>Hi.<br>If u r using RHL or Fedora series..<br><br>Try this before reinstalling openmpi.<br><br>Its better to update the Compilers before installing MPI.<br>



<br>I did this in Fedora 10.i386.<br><br>yum install -y *gcc*<br><br>yum install -y *c++*<br></div></div><br>Then install open-mpi<br>as ./configure, make, make install.<br>If u still have the same problem<br><br>error: Cannot compile and link MPI code with mpicc.<br>



<br>Then remove the open-mpi installed folder.<br><br>then do yum install -y *open-mpi*<br><br>And then try installing gromacs with MPI.<br><br>Actually, the first option worked for me.<br>Also i prefer lam-mpi is the best.<br>

<font color="#888888">

<br><br clear="all"><br>-- <br>B. Sarath Kumar, B.tech.<br>Anna University, Chennai<br>
</font><br>--<br>
gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br></blockquote></div><br>