From charlesreid1

(Created page with "Installed gfortran binary from here: http://gcc.gnu.org/wiki/GFortranBinaries * version for 64-bit intel processors * version for * unsuccessful at installing a fink version I...")
 
No edit summary
Line 1: Line 1:
Installed gfortran binary from here:
=Installation=


http://gcc.gnu.org/wiki/GFortranBinaries
==Mac Leopard (OS X 10.5)==
* version for 64-bit intel processors
* version for
* unsuccessful at installing a fink version


Installing OpenMPI...
I installed the gfortran binary for Mac OS X from here: http://r.research.att.com/tools/


Configure throws this error:
This installs gfortran version 4.2.3 to /usr/local/bin/gfortran


<pre>
==Mac Snow Leopard (OS X 10.6)==
configure:35860: checking if C and Fortran 77 are link compatible
configure:35910: /usr/bin/gcc -c -O3 -DNDEBUG -finline-functions -fno-strict-aliasing  conft
est_c.c
configure:35917: $? = 0
configure:35944: /usr/local/bin/gfortran -o conftest  conftest.f conftest_c.o  >&5
ld: warning: in conftest_c.o, file was built for unsupported file format which is not the architecture being linked (i386)
</pre>


Problem was twofold: first, I needed to compile 64-bit binaries iwth the C compiler, which wasn't happening, because it was trying to create an i386 binary. Second, the fortran copmiler was producing an "unsupported file format".
Same as above...


I fixed the problem by adding -arch x86_64 to the C and Fortran compiler flags.
I installed the gfortran binary for Mac OS X from here: http://r.research.att.com/tools/
 
This installs gfortran version 4.2.3 to /usr/local/bin/gfortran

Revision as of 21:55, 18 May 2011

Installation

Mac Leopard (OS X 10.5)

I installed the gfortran binary for Mac OS X from here: http://r.research.att.com/tools/

This installs gfortran version 4.2.3 to /usr/local/bin/gfortran

Mac Snow Leopard (OS X 10.6)

Same as above...

I installed the gfortran binary for Mac OS X from here: http://r.research.att.com/tools/

This installs gfortran version 4.2.3 to /usr/local/bin/gfortran