Skip to content

Instantly share code, notes, and snippets.

View wzrzt's full-sized avatar

Rain Wei wzrzt

  • Beijing
View GitHub Profile
@wzrzt
wzrzt / rcpp_mojave.txt
Created December 13, 2018 07:23 — forked from mjsteinbaugh/DEPRECATED-rcpp-mojave.txt
Rcpp macOS Mojave header fix
# macOS Mojave fixes
# Cpp headers are messed up on Mojave.
# https://thecoatlessprofessor.com/programming/r-compiler-tools-for-rcpp-on-macos/#comment-4116064190
# Setting `CPPFLAGS` in `~/.R/Makevars` doesn't work.
CPPFLAGS="-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include"
# The second option is to hard install the headers back to the default location of previous macOS builds
# e.g. /usr/local.
# This works but isn't a great solution since it requires modifying Mojave.