Re: [AMBER] Problem installing AmverTools 1.5 on Mac

From: Daniel Roe <daniel.r.roe.gmail.com>
Date: Fri, 19 Aug 2011 12:30:46 -0400

Hi,

Mac experts may want to chime in here, but I believe this message
might be caused if the gfortran you are using doesn't match up with
the gcc (it's looking for the correct version of libgfortran.dylib and
can't find it). Type:

which gcc
which gfortran

Both should be located in the same directory (e.g. /opt/local/bin or
something). If they aren't you need to make sure that the gcc and
gfortran in your path match up.

-Dan

On Fri, Aug 19, 2011 at 4:49 AM, Alexej Grjasnow <grjasnow.gmx.de> wrote:
> Hi,
> I use Mac OS X 10.6 and I tried to install AmberTools 1.5 . I installed gfortran as well as gcc but i keep having the same problem. The mixed C/Fortran compiler seems to be not working. I also tried to replace gcc with gcc-4 and g++ with g++-4. Does anybody know how to fix this ?
>
>
>
> ./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.
>
>
> _______________________________________________
> 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 Fri Aug 19 2011 - 10:00:02 PDT
Custom Search