我在我的Mac上安装了Xcode,运行在El Capitan 10.11版上。我需要从GitHub的库到我的R中的工作区获取文件,所以我跑行:错误:无法找到构建工具
devtools::install_github("Myrepository")
而且出现这个错误:
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
我想这个问题可能来自我的gcc命令行工具,但是当我打
gcc -v
我把它装:
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
任何想法?
你是否安装了xcode命令行工具 – rawr
是的,我从这个网站上下载过:https://developer.apple.com/downloads/ – Helenatodd
devtools :: has_devel()'为你返回TRUE,它不会为'devtools :: install_github(“username/Myrepository”)'使用用户名吗?确切地说, – rawr