Re: [AMBER] setting gcc compiler

From: David A. Case <case.biomaps.rutgers.edu>
Date: Mon, 21 May 2012 21:02:35 -0400

On Mon, May 21, 2012, Alan wrote:
>
> I use Mac Lion and though the scripts to install AT12 had much improved, I
> don't use, for instance, macports, I prefer Fink, and I can't find other
> way of installing AT12 other than hacking the
> amber12/AmberTools/src/configure2 file and replacing e.g.:
>
> cc=gcc
>
> with
>
> cc=gcc-fsf-4.7
>
> Is there a nicer simpler way?

1. Presumably, if your $PATH includes a "gcc" that is really "gcc-fsf-4.7",
no change to config.h would be required. But editing either configure2 or the
resulting config.h file is otherwise required; the latter is probably easier.

2. Be sure that gfortran also points to compiler at the equivalent level,
e.g. gfortran-fsf-4.7.

3. Have you got this to work? It would be of interest to know that, since you
are using both Lion and a _very_ recent compiler: gcc4.7 was released after
the freeze of the AmberTools12 code tree.

....dac


_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon May 21 2012 - 18:30:02 PDT
Custom Search