-
Notifications
You must be signed in to change notification settings - Fork 326
macOS build instructions
On macOS, it is easiest to install the development version of R as a full framework in /Library/Frameworks/R.framework/Versions. This way, after a make install, you can switch to the development version with Simon Urbanek's RSwitch.app utility. This might require root privileges at the make install step. You can also chown -R the R.framework folder to your user login. To install an R framework, pass --enable-R-framework to the configure script:
./configure --enable-R-frameworkIf you'd like to install the development versions in a different framework than the released versions, use the following to append -dev to the framework name (e.g. install to 3.6-dev rather than 3.6):
# Get version in major.minor format:
VERSION=`sed 's/\([0-9]*.[0-9]*\).[0-9]*.*/\1/' VERSION`
# Use version-dev as default folder target:
TARGET=${1:-$VERSION-dev}
./configure --enable-R-framework FW_VERSION=${TARGET}You can change important build variables by passing them to the configure script. The defaults should normally be appropriate:
-
By default,
CPPFLAGSandLDFLAGScontain/usr/local/includeand/usr/local/libwhich is where libraries installed with brew are linked. -
By default,
CCpoints to gcc which is an alias for the system clang.
brew install xzbrew install zlibxcode-select --install