Re: data.table does not find openmp support
Ivan Krylov via R-help <[email protected]> Mon, 29 Dec 2025 21:44:28 +0300
| Newsgroups | gmane.comp.lang.r.general |
|---|---|
| Message-ID | <20251229214428.76ccdc61@Tarkus> |
В Mon, 29 Dec 2025 17:01:36 +0000 Naresh Gurbuxani <[email protected]> пишет: > I removed data.table, then reinstalled using > install.packages("data.table", type = "source"). Now data.table > install has non-zero exit status. > > Following instructions at https://mac.r-project.org/openmp/, I > installed Open MP support by running on command line > > curl -O > https://mac.r-project.org/openmp/openmp-17.0.6-darwin20-Release.tar.gz > sudo tar fvxz openmp-17.0.6-darwin20-Release.tar.gz -C / Thank you very much for the detailed description of the problem. For now, since you've installed the OpenMP runtime compatible with the new Xcode version you're running, you can tell data.table to use it by setting Sys.setenv(PKG_LIBS = '/usr/local/lib/libomp.dylib') install.packages('data.table', type = 'source') ...but be very careful not to use this build of data.table together in the same session with other packages that use OpenMP. (You can reinstall them from source in a similar manner to ensure that they are compatible. Fortunately(?), almost no R packages on CRAN use OpenMP on MacOS.) Meanwhile, we'll need to figure out why the configure test fails when CRAN builders compile data.table for macOS. -- Best regards, Ivan