Re: [AMBER] fortran error during installation

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

Yes - gfortran in on the executable path. From the errors it appears that the Fortran library (presumably installed with gfortran) is not available to the linker? I presume that LD_LIBRARY_PATH needs an additional path for the Fortran stuff, but I can't seem to figure out where the gfortran library lives…

Ram

On Jan 30, 2012, at 7:27 PM, Bill Ross wrote:

>> For reference, I have installed gfortran (4.6) using the apt-get installer.
>
> Is gfortran on your executable path?
>
> Bill
>
> "Mettu, Ramgopal" <rmettu.tulane.edu> wrote:
>
>> 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
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>



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