I'm using apple M1, macOS 12.1, I'm using xcode-select installed c++ compiler.
Following the wiki's instruction, I brew installed libomp, add the makevars file's file, but cannot compile data.table because it says that I cannot find omp.h.
After change the makevars file to include the path of openMP, it compiles successful:
.R/Makevars:
Besides, for those newbie, the wiki installation should be more clear that, to include multi-thread support, we must compile from source, just have libomp installed and makevars updated is not enough, we should then build from source.
I'm using apple M1, macOS 12.1, I'm using xcode-select installed c++ compiler. Following the wiki's instruction, I brew installed libomp, add the
makevars
file's file, but cannot compiledata.table
because it says that I cannot findomp.h
. After change themakevars
file to include the path of openMP, it compiles successful:.R/Makevars
:Besides, for those newbie, the wiki installation should be more clear that, to include multi-thread support, we must compile from source, just have
libomp
installed andmakevars
updated is not enough, we should then build from source.