-
Notifications
You must be signed in to change notification settings - Fork 979
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
Error when installing from source on macOS #4410
Comments
Are you able to try gcc instead of clang? Just spotted this recently |
Sorry, I'm kinda a newbie at this. How would I go about using gcc instead? |
Never mind. I figured it out and am able to install with multithreaded support. I had to change my
|
@jrf1111 thanks for providing solution, closing then |
Sorry to bother but I am trying to decipher the solution as I have the same problem (yes, newbie) In which way having llvm and using other C compilers (not the ones in llvm, which give that strange error in the first post to me too) solves the problem? In case I do not have that gfortran, but I have actually followed all the instructuons https://github.com/Rdatatable/data.table/wiki/Installation#openmp-enabled-compiler-for-mac but with manual installation, what should I write in Makevars to have data.table running multi-thread? |
I have switched to gfortran per https://mac.r-project.org/tools/, https://cran.r-project.org/bin/macosx/tools/, set up
and now, while I try to install the developer version from the repository, I get
The CRAN version works but with single thread. There is a stackoverflow thread about this https://stackoverflow.com/questions/59658131/error-package-or-namespace-load-failed-for-data-table-in-library-dynamlib-p which provides no useful answer. |
You may need to use gfortran version 6.3.0 available here: https://github.com/fxcoudert/gfortran-for-macOS/releases/tag/6.3 |
Make sure to update your Makevars file too. |
Sadly, no. The problem persists with both gfortran 6.3.0 and 8.2.0 |
Did you remove the prior install of data.table? And did you install the CRAN version instead of the developer version? |
Yes, I sure did. I tried with all of them and same result: the error with the developer version, successful installation but single thread with CRAN (Thanks for trying to help!) |
It looks like there are still a few differences between your Makevars file and mine. Try just replacing your entire Makevars file with what I used:
|
restarted, followed your advice, it works now. Thanks!!! |
Glad I could help! |
Following the above suggestions, I got the following errors [1] "en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8" Any suggestions? |
@likanzhan looks to be a different issue then, please create new issue and put all the input and output of attempting to install in newly started R session. |
Thanks ! |
The solution below worked for me:
|
@jangorecki It would be helpful to update the Makevars file on the installation wiki -- thank you to you and the Rdatatable team! |
For what matters, I had to reinstall from scratch for Catalina. I found out that llvm still does not work, whereas setting the .Makevars with gfortran compilers (as above, but also for version 8.2.0) does the trick. Never managed to get through the compilation with llvm, both in Mojave and Catalina. |
I am also having this issue, using both the .R/Makevars file suggested on the readme page (which reports the standard error at the bottom of that page, and led me here), and with @daynefiler's code above. That generates this output:
Installing using the usual install.packages("data.table") works, but results in the multicore issue this fix is trying to address |
@FarMar could you check if |
@jangorecki That works with the Makevar file removed, but throws the "no OpenMP error", same as the CRAN repo. It fails with the Makevars file detailed by @jrf1111 and in @daynefiler's replies above |
@FarMar Before trying to compile data.table with custom Makevars, please ensure it does compile anything. By anything I mean a package with compiled code. Otherwise the problem is not really related to data.table code. Once your compiler can compile anything, then there might a data.table problem when compilation fails.
In both cases you need to ensure compilation works on anything. install.packages("r.gitlab.ci", repos="https://jangorecki.gitlab.io/r.gitlab.ci") when installing package from CRAN you need to add |
@FarMar note this line of your installation output
That means your machine is configured to look for You can check if that file exists on your machine. I have Personally I am using In either case, it should be defined as Hope that helps. |
@jangorecki I'm going to head down that route. I seem to break compiling from the first |
hello everybody -- thanks for this thread! I followed the directions for a macOS installation using a
compilation always failed with this error:
after some headbanging on my keyboard, I found that this warning proved pretty helpful:
in my case,
my machine is almost new, so perhaps that's why I got this message. at any rate, I ran that SUMMARY: might be overkill, but what worked for me was to perform these
then build the database for
and use the
hopefully this can save somebody future headache! |
I've followed all the instructions on https://github.com/Rdatatable/data.table/wiki/Installation and searched StackOverflow, but I cannot get data.table to install from source (for OpenMP support) on Mac 10.14.6 with R4.0. I keep getting this error when I try to install from source:
The text was updated successfully, but these errors were encountered: