merliseclyde / BAS

BAS R package https://merliseclyde.github.io/BAS/
https://merliseclyde.github.io/BAS/
GNU General Public License v3.0
41 stars 16 forks source link

unable to install on mac for R version 3.1. #1

Closed aditya1315 closed 7 years ago

aditya1315 commented 7 years ago

When I try to install it from github using the command,

devtools::install_github('merliseclyde/BAS')

I get the follwing error

make: gfortran-4.2: No such file or directory

what do I do for this? (I have gfortran 4.8 installed on my system)

merliseclyde commented 7 years ago

Which MAC OS X are you running? Is it possible to use the current version of R (3.3.2 on your platform)

The discussion on http://stackoverflow.com/questions/23916219/os-x-package-installation-depends-on-gfortran-4-8 is very helpful on using different versions of fortran with R. the posts at the end are the most relevant in terms of the Makeconf and Makevars files.

You can check which fortran is specified in the file /Library/Frameworks/R.framework/Resources/etc/Makeconf

you may need to set F77 = gfortran-4.8

I have used the recommendation to change the options using the ~/.R/Makevars

I have the lines

F77 = /usr/local/gfortran/bin/gfortran
FC = /usr/local/gfortran/bin/gfortran

in my ~/.R/Makevars file to use with fortran installed from macports

akashrajkn commented 7 years ago

@aditya1315, If you do not want to change the Makeconf, you could try installing gfortran-4.2 (you can download from this site)

aditya1315 commented 7 years ago

@merliseclyde thank you, I was able to install the package