Dear Peter, Thanks for your quick help.
I'm not so familiar with the technicalities (and try to learn): Where is the file 'config.site' located in your system? Is this supposed to be a file which provides settings for 'configure'? Thanks & cheers, Marius PS: Also thanks for the hint towards r.research... I'll look into that once everything else is running. I already have some things running, e.g., texinfo, not sure if the 'texinfo' you mentioned is a specific one (but I'll see then). On Sun, May 10, 2015 at 1:04 PM, peter dalgaard <[email protected]> wrote: > >> On 10 May 2015, at 17:13 , Marius Hofert <[email protected]> wrote: >> >> Hi, >> >> I'm running Mac OS X Yosemite 10.10.3 on a MacBook Pro (Retina, >> 13", 2015). I would like to install R from source (various >> versions etc.) and thus installed Xcode (latest version: >> 6.3.1). How can I get a Fortran compiler which is compatible with Xcode >> 6.3.1? >> >> Here is what I tried: >> 1) I used to download and install gfortran-lion-5666-3.pkg from >> http://r.research.att.com/tools but I now obtain "... can't be >> installed on this disk. This package requires Xcode 4.1 with >> gcc-4.2 (build 5666.3)". It seems that my (newer) Xcode version >> is not recognized. >> 2) I then installed gfortran-4.2.3.dmg from CRAN -> Download R >> for (Mac) OS X -> tools. This worked fine, but then I ran into this issue: >> I wanted to install MPI and thus downloaded and unpacked >> openmpi-1.8.5.tar.gz from http://www.open-mpi.org/software/ompi/ >> but ./configure leads to an error: >> >> ... >> checking if C and Fortran are link compatible... no >> ********************************************************************** >> It appears that your Fortran compiler is unable to link against >> object files created by your C compiler. This typically indicates >> one of a few possibilities: >> >> - A conflict between CFLAGS and FCFLAGS >> - A problem with your compiler installation(s) >> - Different default build options between compilers (e.g., C >> building for 32 bit and Fortran building for 64 bit) >> - Incompatible compilers >> >> Such problems can usually be solved by picking compatible compilers >> and/or CFLAGS and FCFLAGS. More information (including exactly what >> command was given to the compilers and what error resulted when the >> commands were executed) is available in the config.log file in this >> directory. >> ********************************************************************** >> configure: error: C and Fortran compilers are not link compatible. >> Can not continue. >> sklar-2:openmpi-1.8.5 mhofert$ >> >> I found this post >> (http://grokbase.com/t/r/r-sig-mac/14awnd0341/compiling-r-3-1-1-sources-under-os-x-yosemite) >> which seems to be related, but since there are no clear >> instructions/scripts given, I still don't have a solution. >> >> How can I get a suitable/compatible Fortran compiler? >> > > I think you already have one, you just need to set flags properly - the > typical problem is that, with default settings, you get C compiled for 64 > bits and Fortran for 32 bit. > > I have this: > > $ more config.site > r_arch=${r_arch:=x86_64} > CC="gcc -arch $r_arch" > CXX="g++ -arch $r_arch" > F77="gfortran -arch $r_arch" > FC="gfortran -arch $r_arch" > OBJC="gcc -arch $r_arch" > with_blas="-framework vecLib" > with_lapack=yes > CURL_CONFIG=/usr/bin/curl-config > > Notice also, that with the newer sources, you need to install some stuff from > http://r.research.att.com/libs/ : pcre, xz, texinfo, plus maybe some more > that I have forgotten. > > > >> Thanks & cheers, >> Marius >> >> _______________________________________________ >> R-SIG-Mac mailing list >> [email protected] >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > -- > Peter Dalgaard, Professor, > Center for Statistics, Copenhagen Business School > Solbjerg Plads 3, 2000 Frederiksberg, Denmark > Phone: (+45)38153501 > Email: [email protected] Priv: [email protected] > > > > > > > > _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
