Skip to content
Prev 13009 / 15075 Next

Please test R 4.0.0 pre-releases!

Thanks Simon,

This simplifies things a lot and clears up the process. While the instructions on?https://mac.r-project.org/?are more clear now I think there is still simplification needed for the install process and custom modifications that are needed.
This not only applies to the dev page but finally also to production end users if the SDK 10.15 issues (see below) persists.

I?ve scripted all installation steps (R-devel, gfortran, SDK 10.13) and will probably write a blog post about it to make the R community more aware about it. Let me know if anything is wrong about it - otherwise I?ll use the code below in the blog post.

# install R-devel
wget https://mac.r-project.org/el-capitan/R-devel/R-devel-el-capitan-sa-x86_64.tar.gz
sudo tar fvxz R*.tar.gz -C /
rm R-devel-el-capitan-sa-x86_64.tar.gz

# install gfortran
wget https://github.com/fxcoudert/gfortran-for-macOS/releases/download/8.2/gfortran-8.2-Mojave.dmg
sudo hdiutil attach gfortran*.dmg
sudo installer -package /Volumes/gfortran*/gfortran*/gfortran*.pkg -target /
sudo hdiutil detach /Volumes/gfortran-8.2-Mojave

# install SDK10.13
wget https://github.com/phracker/MacOSX-SDKs/releases/download/10.15/MacOSX10.13.sdk.tar.xz
tar fvxz MacOSX10.13.sdk.tar.xz
sudo mv MacOSX10.13.sdk /Library/Developer/CommandLineTools/SDKs/
rm -rf MacOSX10.13*

In addition people need to set custom CFLAGS in ~/.R/Makevars to actually use it:

CFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk
CCFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk
CXXFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk
CPPFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk

In addition there really seem to be major problems regarding the 10.15 SDK. For example, {igraph} which is a package on which lots of other packages depend, cannot be installed from source with SDK 10.15 but works with SDK 10.13.

Patrick
On 1. Apr 2020, 09:38 +0200, Simon Urbanek <simon.urbanek at r-project.org>, wrote: