<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Dear Ansgar,<div><br></div><div>I had already installed Xcode which includes all the compilers for Mac.&nbsp;</div><div><br>As you can see in my /usr/bin, I have:</div><div>lrwxr-xr-x &nbsp; 1 root &nbsp; &nbsp; &nbsp; &nbsp;wheel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;7 Jul 19 07:52 gcc -&gt; gcc-4.2</div><div><div>lrwxr-xr-x &nbsp; 1 root &nbsp; &nbsp; &nbsp; &nbsp;wheel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;7 Jul 19 07:53 g++ -&gt; g++-4.2</div><div>lrwxr-xr-x &nbsp; 1 root &nbsp; &nbsp; &nbsp; &nbsp;wheel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;7 Jul 20 09:14 c++-3.3 -&gt; g++-3.3</div><div>Macintosh:bin alikachmar$ pwd</div><div>/usr/bin</div><div>Macintosh:bin alikachmar$&nbsp;</div><div><br></div><div>and I have gcc as well:</div><div><br></div><div><div>Macintosh:bin alikachmar$ cd /usr/local/lib</div><div>Macintosh:lib alikachmar$ ls -lrt</div><div>total 18960</div><div>-rwxr-xr-x@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp; &nbsp;735 Mar 21 &nbsp;2007 libgmp.la</div><div>-rw-r--r--@ &nbsp;1 root &nbsp;wheel &nbsp; 448148 Mar 21 &nbsp;2007 libgmp.a</div><div>-rwxr-xr-x@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp; &nbsp;781 Dec 22 &nbsp;2008 libmpfr.la</div><div>-rw-r--r--@ &nbsp;1 root &nbsp;wheel &nbsp;1342688 Dec 22 &nbsp;2008 libmpfr.a</div><div>drwxr-xr-x@ &nbsp;3 root &nbsp;wheel &nbsp; &nbsp; &nbsp;102 Jun 26 &nbsp;2009 gcc</div><div>-rwxr-xr-x@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp; &nbsp;906 Jun 26 &nbsp;2009 libssp.la</div><div>-rw-r--r--@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp;49612 Jun 26 &nbsp;2009 libssp.a</div><div>-rwxr-xr-x@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp;17040 Jun 26 &nbsp;2009 libssp.0.dylib</div><div>-rwxr-xr-x@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp; &nbsp;895 Jun 26 &nbsp;2009 libssp_nonshared.la</div><div>-rw-r--r--@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp; 2160 Jun 26 &nbsp;2009 libssp_nonshared.a</div><div>-rw-r--r--@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp;17500 Jun 26 &nbsp;2009 libgcc_s.10.5.dylib</div><div>-rw-r--r--@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp;17372 Jun 26 &nbsp;2009 libgcc_s.10.4.dylib</div><div>-rw-r--r--@ &nbsp;1 root &nbsp;wheel &nbsp; 261384 Jun 26 &nbsp;2009 libgcc_s.1.dylib</div><div>-rwxr-xr-x@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp; &nbsp;940 Jun 26 &nbsp;2009 libgfortran.la</div><div>-rw-r--r--@ &nbsp;1 root &nbsp;wheel &nbsp;5079684 Jun 26 &nbsp;2009 libgfortran.a</div><div>-rwxr-xr-x@ &nbsp;1 root &nbsp;wheel &nbsp; 996600 Jun 26 &nbsp;2009 libgfortran.3.dylib</div><div>drwxr-xr-x@ 18 root &nbsp;wheel &nbsp; &nbsp; &nbsp;612 Jun 26 &nbsp;2009 x86_64</div><div>-rw-r--r--@ &nbsp;1 root &nbsp;wheel &nbsp; 768188 Jun 26 &nbsp;2009 libiberty.a</div><div>-rw-r--r--@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp; &nbsp;165 Jun 26 &nbsp;2009 libgomp.spec</div><div>-rwxr-xr-x@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp; &nbsp;912 Jun 26 &nbsp;2009 libgomp.la</div><div>-rw-r--r--@ &nbsp;1 root &nbsp;wheel &nbsp; 348956 Jun 26 &nbsp;2009 libgomp.a</div><div>-rwxr-xr-x@ &nbsp;1 root &nbsp;wheel &nbsp; &nbsp;76948 Jun 26 &nbsp;2009 libgomp.1.dylib</div><div>drwxr-xr-x &nbsp; 4 root &nbsp;wheel &nbsp; &nbsp; &nbsp;136 Dec 15 &nbsp;2009 ImageMagick-6.5.8</div><div>lrwxrwxrwx &nbsp; 1 root &nbsp;wheel &nbsp; &nbsp; &nbsp; 14 Jul 16 22:09 libssp.dylib -&gt; libssp.0.dylib</div><div>lrwxrwxrwx &nbsp; 1 root &nbsp;wheel &nbsp; &nbsp; &nbsp; 15 Jul 16 22:09 libgomp.dylib -&gt; libgomp.1.dylib</div><div>lrwxrwxrwx &nbsp; 1 root &nbsp;wheel &nbsp; &nbsp; &nbsp; 19 Jul 16 22:09 libgfortran.dylib -&gt; libgfortran.3.dylib</div><div>lrwxrwxrwx &nbsp; 1 root &nbsp;wheel &nbsp; &nbsp; &nbsp; 16 Jul 16 22:09 libgcc_s_x86_64.1.dylib -&gt; libgcc_s.1.dylib</div><div>lrwxrwxrwx &nbsp; 1 root &nbsp;wheel &nbsp; &nbsp; &nbsp; 16 Jul 16 22:09 libgcc_s_ppc64.1.dylib -&gt; libgcc_s.1.dylib</div><div>-rw-r--r-- &nbsp; 1 root &nbsp;wheel &nbsp; 197248 Jul 17 00:28 libf2c.a</div><div>Macintosh:lib alikachmar$&nbsp;</div></div><div><br></div><div><br></div><div>I add in my .bash_profile:&nbsp;export PATH=$PATH:/usr/bin/gcc and still I have the same error.</div><div><br></div><div><br></div><div>Thanks.</div><div><br></div><div>Ali</div>&gt; From: Ansgar.Esztermann@mpi-bpc.mpg.de<br>&gt; To: gmx-users@gromacs.org<br>&gt; Date: Thu, 22 Jul 2010 10:38:02 +0200<br>&gt; Subject: Re: [gmx-users] installation: gromacs on Mac.10.5.8 leopard<br>&gt; <br>&gt; [This should have gone to the list]<br>&gt; <br>&gt; Dear Ali,<br>&gt; <br>&gt; gcc should be in /usr/bin (or some other bin, if you do not use Apple's compiler), not in /usr/lib nor /usr/local/lib. Do you have the developer tools installed? If not, get them from http://developer.apple.com/mac/ (they should also be on the OS DVDs, albeit in an older version).<br>&gt; <br>&gt; <br>&gt; Regards,<br>&gt; <br>&gt; A.<br>&gt; <br>&gt; <br>&gt; On Jul 22, 2010, at 8:30 , KACHMAR Ali wrote:<br>&gt; &gt; Dear Ansgar,<br>&gt; <br>&gt; &gt; <br>&gt; &gt; the config.log reads:<br>&gt; &gt; <br>&gt; &gt; configure:3845: checking for cc option to accept ISO C89<br>&gt; &gt; configure:3919: cc  -c -g -O2 -I/Users/alikachmar/software/include conftest.c &gt;&amp;5<br>&gt; &gt; configure:3925: $? = 0<br>&gt; &gt; configure:3948: result: none needed<br>&gt; &gt; configure:3977: checking for style of include used by make<br>&gt; &gt; configure:4005: result: GNU<br>&gt; &gt; configure:4030: checking dependency style of cc<br>&gt; &gt; configure:4121: result: gcc3<br>&gt; &gt; configure:4419: checking dependency style of cc<br>&gt; &gt; configure:4510: result: gcc3<br>&gt; &gt; configure:4535: checking for mpxlc<br>&gt; &gt; configure:4565: result: no<br>&gt; &gt; configure:4535: checking for mpicc<br>&gt; &gt; configure:4551: found /usr/bin/mpicc<br>&gt; &gt; configure:4562: result: mpicc<br>&gt; &gt; configure:4576: checking whether the MPI cc command works<br>&gt; &gt; configure:4600: mpicc -o conftest -g -O2 -I/Users/alikachmar/software/include -L/Users/alikachmar/software/lib conftest.c  &gt;&amp;5<br>&gt; &gt; --------------------------------------------------------------------------<br>&gt; &gt; The Open MPI wrapper compiler was unable to find the specified compiler<br>&gt; &gt; gcc in your PATH.<br>&gt; &gt; <br>&gt; &gt; Note that this compiler was either specified at configure time or in<br>&gt; &gt; one of several possible environment variables.<br>&gt; &gt; <br>&gt; &gt; --------------------------------------------------------------------------<br>&gt; &gt; configure:4606: $? = 1<br>&gt; &gt; configure: failed program was:<br>&gt; &gt; | /* confdefs.h.  */<br>&gt; &gt; | #define PACKAGE_NAME "gromacs"<br>&gt; &gt; | #define PACKAGE_TARNAME "gromacs"<br>&gt; &gt; | #define PACKAGE_VERSION "4.0.5"<br>&gt; &gt; | #define PACKAGE_STRING "gromacs 4.0.5"<br>&gt; &gt; | #define PACKAGE_BUGREPORT "gmx-users@gromacs.org"<br>&gt; &gt; | #define PACKAGE "gromacs"<br>&gt; &gt; | #define VERSION "4.0.5"<br>&gt; &gt; | #define GMX_SOFTWARE_SQRT<br>&gt; &gt; | #define GMX_QMMM_GAUSSIAN<br>&gt; &gt; | #define BUILD_TIME "Thu Jul 22 07:52:36 CEST 2010"<br>&gt; &gt; | #define BUILD_USER "alikachmar@Macintosh.local"<br>&gt; &gt; | #define BUILD_MACHINE "Darwin 9.8.0 i386"<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:4618: error: Cannot compile and link MPI code with mpicc<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; my .bash_profile:<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; # Setting PATH for Python 2.7<br>&gt; &gt; # The orginal version is saved in .bash_profile.pysave<br>&gt; &gt; PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"<br>&gt; &gt; export PATH<br>&gt; &gt; <br>&gt; &gt; # Setting PATH for MacPython 2.6<br>&gt; &gt; # The orginal version is saved in .bash_profile.pysave<br>&gt; &gt; PATH="/Library/Frameworks/Python.framework/Versions/2.6/bin:${PATH}"<br>&gt; &gt; export PATH<br>&gt; &gt; <br>&gt; &gt; export PATH=$PATH:/usr/local/lib<br>&gt; &gt; export PATH=$PATH: /usr/bin/mpicc<br>&gt; &gt; export PATH=$PATH:/usr/local/lam/bin/<br>&gt; &gt; <br>&gt; &gt; source /usr/local/gromacs/bin/GMXRC<br>&gt; &gt; <br>&gt; &gt; export CPPFLAGS=-I/usr/local/openmpi/include<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; PS: the gcc is under the directory: /usr/local/lib or /usr/lib.<br>&gt; &gt; <br>&gt; &gt; Thanks.<br>&gt; &gt; <br>&gt; &gt; Ali<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; &gt; From: Ansgar.Esztermann@mpi-bpc.mpg.de<br>&gt; &gt; &gt; To: gmx-users@gromacs.org<br>&gt; &gt; &gt; Date: Wed, 21 Jul 2010 12:15:25 +0200<br>&gt; &gt; &gt; Subject: Re: [gmx-users] installation: gromacs on Mac.10.5.8 leopard<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; On Jul 21, 2010, at 11:07 , KACHMAR Ali wrote:<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; checking whether the MPI cc command works... configure: error: Cannot compile and link MPI code with mpicc<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; This is the immediate problem: something goes wrong when compiling a test program with mpicc. If you look into the configure log, you should find a more detailed explanation of what went wrong (somewhere near the end). <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Regards,<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; A.<br>&gt; &gt; &gt; -- <br>&gt; &gt; &gt; Ansgar Esztermann<br>&gt; &gt; &gt; DV-Systemadministration<br>&gt; &gt; &gt; Max-Planck-Institut für biophysikalische Chemie, Abteilung 105<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; -- <br>&gt; &gt; &gt; gmx-users mailing list gmx-users@gromacs.org<br>&gt; &gt; &gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt; &gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; &gt; &gt; Please don't post (un)subscribe requests to the list. Use the <br>&gt; &gt; &gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt; &gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt; <br>&gt; &gt; De nouvelles Emoticones sur Messenger ? Téléchargez gratuitement les émoticônes Summer !<br>&gt; <br>&gt; -- <br>&gt; Ansgar Esztermann<br>&gt; DV-Systemadministration<br>&gt; Max-Planck-Institut für biophysikalische Chemie, Abteilung 105<br>&gt; <br>&gt; -- <br>&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; Please don't post (un)subscribe requests to the list. Use the <br>&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br></div>                                               <br /><hr />Le nouveau Messenger arrive !  <a href='http://clk.atdmt.com/FRM/go/244627952/direct/01/' target='_new'>Téléchargez-le gratuitement et découvrez ses nouvelles fonctionnalités</a></body>
</html>