[R-SIG-Mac] Can I safely edit the fortran compiler in Makeconf?
Federico Calboli
federico.calboli at helsinki.fi
Fri May 8 10:18:03 CEST 2015
I have actually solved it by editing ~/.R/Makevars…
BW
F
> On 8 May 2015, at 10:39, Federico Calboli <federico.calboli at helsinki.fi> wrote:
>
> Hi,
>
> I am trying to build this package from source:
>
> https://github.com/timothyfrasier/related
>
> I cannot do it because I have gfortran-4.9 (from hombrew’s gcc49 --enable-fortran) and
>
> /Library/Frameworks/R.framework/Versions/3.2/Resources/etc/Makeconf
>
> lists
>
> etc/Makeconf. Generated from Makeconf.in by configure.
> #
> # ${R_HOME}/etc/Makeconf
> #
> # R was configured using the following call
> # (not including env. vars and site configuration)
> # configure 'CC=clang' 'CXX=clang++' 'OBJC=clang' 'F77=gfortran-4.8' 'FC=gfortran-4.8' 'CFLAGS=-Wall -mtune=core2 -g -O2' 'CXXFLAGS=-Wall -mtune=core2 -g -O2' 'OBJCFLAGS=-Wall -mtune=core2 -g -O2' 'FCFLAGS=-Wall -g -O2' 'F77FLAGS=-Wall -g -O2' '--with-system-zlib' '--enable-memory-profiling' 'CPPFLAGS=-I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include' '--x-libraries=/opt/X11/lib’
> …
>
> I always create a symlink to the gfortran-4.9 binary so it reads ‘gfortran’, for ease of deployment.
>
> Can I edit Makeconfig so that it reads:
>
> etc/Makeconf. Generated from Makeconf.in by configure.
> #
> # ${R_HOME}/etc/Makeconf
> #
> # R was configured using the following call
> # (not including env. vars and site configuration)
> # configure 'CC=clang' 'CXX=clang++' 'OBJC=clang' 'F77=gfortran' 'FC=gfortran’ <—*change to gfortran*
>
> and be done with it? will it break everything/anything/bite me in the ass at some point?
>
> Best
>
> F
>
>
> --
> Federico Calboli
> Ecological Genetics Research Unit
> Department of Biosciences
> PO Box 65 (Biocenter 3, Viikinkaari 1)
> FIN-00014 University of Helsinki
> Finland
>
> federico.calboli at helsinki.fi
>
>
>
>
>
>
--
Federico Calboli
Ecological Genetics Research Unit
Department of Biosciences
PO Box 65 (Biocenter 3, Viikinkaari 1)
FIN-00014 University of Helsinki
Finland
federico.calboli at helsinki.fi
More information about the R-SIG-Mac
mailing list