-
Notifications
You must be signed in to change notification settings - Fork 17
Installation FAQ
Alison Appling edited this page Mar 15, 2023
·
5 revisions
- Install
gfortran
6.1 binary dmg from https://github.com/fxcoudert/gfortran-for-macOS/releases - Add two symlinks to make it visible. Note that if you already have a gcc/gfortran installed (hopefully a more modern version), these symlinks may affect it.
cd /usr/local/lib
ln -sv /usr/local/gfortran/lib/libgfortran.3.dylib libgfortran.3.dylib
ln -sv /usr/local/gfortran/lib/libquadmath.0.dylib libquadmath.0.dylib
After this you should be able to install from source as usual, following the commands below.
Macs users: You might need to specify type="source" in your call to install.packages. Like this:
install.packages(c("smwrData", "smwrBase", "smwrGraphs", "smwrStats",
"smwrQW", "rloadest"), repos=c("http://owi.usgs.gov/R",
"http://cran.us.r-project.org"), dependencies=TRUE, type="source")
Macs running OS X: You need gfortran-4.8 to install smwrStats (a dependency of rloadest and therefore loadflex). Other users have discovered that this is not properly installed/linked for them. A solution that has worked is to run these lines from the terminal:
curl -O http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2
sudo tar fvxz gfortran-4.8.2-darwin13.tar.bz2 -C /
(The above lines come from http://www.thecoatlessprofessor.com/programming/rcpp-rcpparmadillo-and-os-x-mavericks-lgfortran-and-lquadmath-error/ and http://stackoverflow.com/questions/23916219/os-x-package-installation-depends-on-gfortran-4-8 ) Again, email feedback welcome!