Re: [AMBER] Compiling AmberTools 1.4 on MacOS10.5

From: Jason Swails <jason.swails.gmail.com>
Date: Tue, 27 Apr 2010 13:34:33 -0400

Hello,

What are you running on? What gfortran version do you have? It seems kind
of strange that libgfortran.a cannot be found... See if `locate
libgfortran.a` returns anything. If ld cannot find it in its default path,
try adding the directory containing libgfortran.a to your LD_LIBRARY_PATH
variable. That should at least allow ld to find the library at link time.

Good luck!
Jason

On Tue, Apr 27, 2010 at 1:26 PM, Dean Cuebas
<deancuebas.missouristate.edu>wrote:

> I get the following error message during preparation of ./configure gnu and
> not sure how to handle the lgfortran error:
>
> Thanks in advance!
> Dean
>
> +++++++++++++++++++++++++++++++++++++
> Your AMBERHOME environment variable should be set to /usr/local/amber11
>
>
> Obtaining the gnu suite version:
> gcc -v
> The version is 4.0.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.0.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 -o testp testp.c.o testp.f.o -lgfortran
> ld: library not found for -lgfortran
> collect2: ld returned 1 exit status
> ./configure: line 1057: ./testp: No such file or directory
> WARNING: Unable to compile mixed C/Fortran code.
>
> Testing pointer size:
> gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o test_pointer_size
> test_pointer_size.c
> Detected 32 bit operating system.
>
> Testing flex:
> OK
>
> Configuring NetCDF; (may be time-consuming)
>
> NetCDF configure succeeded.
>
> Configuring fftw-2.1.5; (may be time-consuming)
>
> fftw-2.1.5 configure succeeded.
>
> The configuration file, config.h, was successfully created.
>
> The next step is to type 'make install'
>
> +++++++++++++++++++++++++++++++++++
>
>
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>



-- 
---------------------------------------
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue Apr 27 2010 - 11:00:06 PDT
Custom Search