我在Mac上安装了Xcode,在El Capitan版本10.11上运行.我需要从github存储库中获取文件到R中的工作区,所以我运行该行:
devtools::install_github("Myrepository")
Run Code Online (Sandbox Code Playgroud)
并出现此错误:
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
Run Code Online (Sandbox Code Playgroud)
我认为问题可能来自我的gcc命令行工具,但是当我点击时
gcc -v
Run Code Online (Sandbox Code Playgroud)
我安装了它:
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
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?