[AMBER] fortran error during installation

From: Mettu, Ramgopal <rmettu.tulane.edu>
Date: Tue, 31 Jan 2012 01:16:44 +0000

Hi All,
 I am trying to build Amber with CUDA support on a GPU workstation (with Ubuntu 11, with 2 Tesla 2070 GPU cards) using directions found here: http://ambermd.org/gpus/.

I applied all the patches that I could find (for both Amber and AmberTools) and began building the single GPU version. I got as far as the "configure -cuda gnu" step and got this error:

Testing mixed C/Fortran compilation:
    gcc -DSYSV -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 -DSYSV -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp testp.c.o testp.f.o -lgfortran
/usr/bin/ld: cannot find -lgfortran
collect2: ld returned 1 exit status
./configure: 1874: ./testp: not found
Error: Unable to compile mixed C/Fortran code.
   Please check your compiler settings and configure flags.

For reference, I have installed gfortran (4.6) using the apt-get installer. Being inexperienced with Fortran, I'm looking for some help with how to proceed I am using gcc and g++ version 4.5 - is this correct? Can anyone tell me which version of gcc works best? Or, perhaps I have some kind of path information for the Fortran libraries missing - any pointers on which environment variables are necessary would be great. Thanks!

Ram
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon Jan 30 2012 - 17:30:03 PST
Custom Search