Re: [AMBER] AmberTools-1.3 not compiling on MacOsX

From: Jason Swails <>
Date: Wed, 23 Dec 2009 06:38:08 -0500

I would personally suggest the MacPorts option, since the binaries on are "experimental", and there are known bugs when
trying to use that compiler on some Amber code (AmberTools has
compiled fine, it's bits of Amber I've had problems with). My version
of gfortran from MacPorts (gfortran 4.5) also passes all tests on
AmberTools 1.3 whereas the gfortran4.5 from did
not... However, the gfortran 4.5 from MacPorts is also experimental,
so you may want to install gcc44 from MacPorts, and follow Mengjuei's

The errors you got are as David suggested, your gfortran is creating
only binaries built for the i368 (32-bit) architecture, whereas your
gcc, built for Snow Leopard, is building 64-bit (x86_64) binaries, so
ranlib complains when trying to *compile* these "incompatible" object
files into a library. Such are the pains when Apple attempts to
transition their OS into the 64-bit world, as Snow Leopard is their
first 64-bit kernel (though by default, personal Macs still boot a
64-bit-enabled, 32-bit kernel, which is a source of much of the

Good luck!

On Wed, Dec 23, 2009 at 5:05 AM, Mengjuei Hsieh <> wrote:
> On Wed, Dec 23, 2009 at 1:12 AM, I <> wrote:
>> What I did was to
>>    1) have a my ~/bin in the PATH
>>    2) ln -s /opt/local/bin/gfortran-mp-4.4 ~/bin/gfortran
>>    3) cd $AMBERHOME/src; ./configure -macAccelerate gnu
> Here are some more elaborated steps:
> Best,
> --
> Mengjuei
> _______________________________________________
> AMBER mailing list

Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
AMBER mailing list
Received on Wed Dec 23 2009 - 04:00:02 PST
Custom Search