Skip to content

Instantly share code, notes, and snippets.

@npezolano
Last active December 17, 2015 11:59
Show Gist options
  • Save npezolano/5606305 to your computer and use it in GitHub Desktop.
Save npezolano/5606305 to your computer and use it in GitHub Desktop.
compile R on mac osx with gcc ,clang and accelerate framework
#make R with GCC
./configure CC="gcc-mp-4.7 -arch x86_64" CXX="gcc-mp-4.7 -arch x86_64" F77="gfortran-mp-4.7 -arch x86_64" FC="gfortran-mp-4.7 -arch x86_64" OBJC="gcc-mp-4.7 -arch x86_64" --x-includes=/usr/X11/include/ --x-libraries=/usr/X11/lib/ --with-blas='-framework Accelerate' --with-lapack --without-aqua CPPFLAGS="-D__ACCELERATE__" --prefix=/Users/admin1/lib/R --enable-BLAS-shlib
#make R with Clang
./configure CC="clang -arch x86_64" CXX="clang -arch x86_64" F77="gfortran -arch x86_64" FC="gfortran -arch x86_64" OBJC="clang -arch x86_64" --x-includes=/usr/X11/include/ --x-libraries=/usr/X11/lib/ --with-blas='-framework Accelerate' --with-lapack --without-aqua CPPFLAGS="-D__ACCELERATE__" --prefix=/Users/admin1/libclang34 --enable-BLAS-shlib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment