-
Notifications
You must be signed in to change notification settings - Fork 997
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
Update of Mac installation information for Monterey (v 12) #5271
Comments
You can make the edit on the Not sure if this will work on your system - but these flags made even packages like CC = /usr/bin/gcc64
CXX = /usr/bin/g++
CXX11 = /usr/bin/g++
CXX14= /usr/bin/g++
CXX17= /usr/bin/g++
CXX1X= /usr/bin/g++
FC = /usr/bin/gfortran48
SHLIB_OPENMP_CFLAGS = -fopenmp
SHLIB_OPENMP_CXXFLAGS= -fopenmp
SHLIB_OPENMP_FCFLAGS= -fopenmp
SHLIB_OPENMP_FFLAGS= -fopenmp You should be able to modify suitably to get it to work on Mac. |
I too installed on an M1 mac with Monterey. see https://mac.r-project.org/openmp/
With that For my builds I like to git clone into a directory and then run the
|
I also fixed the |
The installation instructions for arm Macs might need an update pointing to the location of |
I had to do a fresh install on a new M1 Mac running Monterey (v 12.0.1) today. I followed the instructions at https://github.com/Rdatatable/data.table/wiki/Installation (which were really helpful). However, I couldn't get data.table to install from source or recognize OpenMP.
It turns out that in Step 2, Option 1 (LLVM) the Makevars file specifications don't work with the current version of the Mac OS (Monterey 12.0.1) and the latest version of Homebrew (3.3.5) which installs into a new location. Below is the code that worked for me. I installed from source without a problem and OpenMP is recognized. I had to install gettext (
brew install gettext
). I had also installed gcc via Homebrew also, but I don't know if that was required. After this, I get OpenMP working with 5 threads, which is correct.Hopefully this will be helpful to someone. Note that, despite the success with
data.table
, thefst
package doesn't recognize OpenMP even after installing from source, so I can't guarantee that the code below will solve all related issues. I will file an issue in the fst repo separately.The text was updated successfully, but these errors were encountered: