Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation from Github fails on Mac #16

Closed
rmendels opened this issue Nov 11, 2017 · 2 comments
Closed

Installation from Github fails on Mac #16

rmendels opened this issue Nov 11, 2017 · 2 comments

Comments

@rmendels
Copy link

Running os 10.12.6, latest Xcode, R3.4.2. This problem has arisen in other packages:

devtools::install_github("helske/bssm")
Downloading GitHub repo helske/bssm@master
from URL https://api.github.com/repos/helske/bssm/zipball/master
Installing bssm
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ
--no-save --no-restore --quiet CMD INSTALL
'/private/var/folders/xw/mcmsdzzx4mgbttplylgs7ysh0000gp/T/RtmpoGVsEQ/devtoolsf4114663d465/helske-bssm-c86446d'
--library='/Users/rmendels/Library/R/3.4/library' --install-tests

  • installing source package ‘bssm’ ...
    ** libs
    clang++ -std=gnu++11 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I"/Users/rmendels/Library/R/3.4/library/BH/include" -I"/Users/rmendels/Library/R/3.4/library/Rcpp/include" -I"/Users/rmendels/Library/R/3.4/library/RcppArmadillo/include" -I"/Users/rmendels/Library/R/3.4/library/ramcmc/include" -I"/Users/rmendels/Library/R/3.4/library/sitmo/include" -I/usr/local/include -fopenmp -fPIC -Wall -g -O2 -c R_approx.cpp -o R_approx.o
    clang: error: unsupported option '-fopenmp'
    make: *** [R_approx.o] Error 1
    ERROR: compilation failed for package ‘bssm’
  • removing ‘/Users/rmendels/Library/R/3.4/library/bssm’
  • restoring previous ‘/Users/rmendels/Library/R/3.4/library/bssm’
    Installation failed: Command failed (1)

Thanks

@rmendels
Copy link
Author

Found a solution - an R compatible version of clang with openmp included:

http://thecoatlessprofessor.com/programming/openmp-in-r-on-os-x/#after-3-4-0

-Roy

@helske
Copy link
Owner

helske commented Nov 13, 2017

Yes, I just switched to Mac as well, and found out the same issue couple weeks ago. Glad you got it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants