Error: could not find the build tools needed for the assembly

I installed Xcode on my Mac, working on El Capitan version 10.11. I need to get the files from the github repository into my workspace in R, so I ran the line:

devtools::install_github("Myrepository") 

And this error appears:

 Downloading GitHub repo Myrepository from URL https://api.github.com/repos/Myrepository/func/zipball/master Erreur : Could not find build tools necessary to build func 

I thought the problem might come from my gcc command line tools, but when I clicked

 gcc -v 

I have it installed:

 Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 7.0.2 (clang-700.1.81) Target: x86_64-apple-darwin15.3.0 Thread model: posix 

Any ideas?

+5
source share
1 answer

I had the same problem when installing the forecast package from GitHub on my Mac running El Capitan. The proposed readline fix above does not work for me. I noticed that my shell did not see R (for example, when I typed R at the command line, she said that the command was not found). I also worked as a user who is not an administrator of my computer, and I think that he installed R as a user who is not an administrator. So I downloaded R again (same version) and installed it as admin user. (This was based on a hunch after reading some of the fictitious problems with R and paths in El Cap ). After reinstalling R as an administrator, I was able to open R in the terminal, and at that moment devtools::install_github("robjhyndman/forecast") worked fine.

+1
source

Source: https://habr.com/ru/post/1244808/


All Articles