'm having trouble compiling AmberTools 1.5 on an Intel Mac running OS 10.6.8. I'm following the instructions provided at
http://amberonmac.blogspot.com/. I have installed XCode 4 (not the latest version) and MacPorts 2. I've tried it with gcc44, gcc45, and even gcc43. I get essentially the same error messages with every different gcc4x. I've tried some of the suggestions I found on the Amber Archive and none of them really change the error message. I would appreciate any advice or suggestions you can offer. Thanks.
Jennifer
(These messages are what I see with gcc44, since I understand that's the preferred version.)
c28613:src jennifer.muzyka$ ./configure -macAccelerate gnu
Obtaining the gnu suite version:
gcc -v
The version is 4.2.1
Testing the gcc compiler:
gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp testp.c
OK
Validating the C++ compiler version:
g++ -v
The version is 4.2.1
OK
Testing the gfortran compiler:
gfortran -O0 -o testp testp.f
OK
Testing mixed C/Fortran compilation:
gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -c -o testp.c.o testp.c
gfortran -O0 -c -o testp.f.o testp.f
gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp testp.c.o testp.f.o -lgfortran -framework Accelerate
ld: library not found for -lgfortran
collect2: ld returned 1 exit status
./configure: line 1397: ./testp: No such file or directory
Error: Unable to compile mixed C/Fortran code.
Please check your compiler settings and configure flags.
c28613:src jennifer.muzyka$
Jennifer L. Muzyka
Professor of Chemistry
Centre College
600 West Walnut Street
Danville, KY 40422
jennifer.muzyka.centre.edu<mailto:jennifer.muzyka.centre.edu>
http://web.centre.edu/muzyka/
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue Aug 09 2011 - 11:30:03 PDT