Closed ahoffrichter closed 3 years ago
Hi,
The package has been tested on the following systems Windows 10: Home (1903), MAC: Catalina (10.15.1) and Linux: Ubuntu (16.04.6). It should be supported for all these three systems.
Could you please check if you have installed a compiler that does support OpenMP, such as gcc or clang from homebrew, and after install them, you have to modify variables in your personal makeovers file (~/.R/Makevars). Here is an example of the ~/.R/Makevars files when using gcc as the compiler on the macOS Catalina.
VER=-11.0.3 CC=gcc$(VER) CXX=g++$(VER) CFLAGS=-mtune=native -g -O2 -Wall -pedantic -Wconversion CXXFLAGS=-mtune=native -g -O2 -Wall -pedantic -Wconversion FLIBS=-L/usr/local/Cellar/gcc/11.0.3/lib/gcc/11
The first line is the gcc version on your computer (type gcc --version on your terminal, you will got the information).And you also have to modify the last line according to your version of gcc. You can use the homebrew to install it, i.e. brew install gcc
If this does not help, here are also other solutions you can follow: https://github.com/RcppCore/RcppArmadillo/issues/143
Hope it helps!
Best, Ying
Hi Ying,
thank you very much for the quick reply! I will try your suggestions and let you know if it works.
Best, Anne
I'm having a problem installing the package. When using the devtools command
devtools::install_github('xzhoulab/iDEA', dependencies = T)
it returns an error:
clang: error: unsupported option '-fopenmp' make: *** [RcppExports.o] Error 1 ERROR: compilation failed for package ‘iDEA’
I guess it's a problem with mac and the clang compiler?
Could there be an easy fix in the package? Or do you have a suggestion how I can solve this?
Thanks in advance, Anne